Changeset 183753 in webkit
- Timestamp:
- May 4, 2015 11:45:40 AM (9 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r183752 r183753 1 2015-05-04 Andreas Kling <akling@apple.com> 2 3 Make ExecState::vm() branchless in release builds. 4 <https://webkit.org/b/144586> 5 6 Reviewed by Geoffrey Garen. 7 8 Avoid null checking the ExecState's callee() before getting the 9 VM from it. The code was already dereferencing it anyway, since we 10 know it's not gonna be null. 11 12 * runtime/JSCellInlines.h: 13 (JSC::ExecState::vm): 14 1 15 2015-05-04 Basile Clement <basile_clement@apple.com> 2 16 -
trunk/Source/JavaScriptCore/runtime/JSCellInlines.h
r182747 r183753 121 121 inline VM& ExecState::vm() const 122 122 { 123 ASSERT(callee()); 123 124 ASSERT(callee()->vm()); 124 return *callee ()->vm();125 return *calleeAsValue().asCell()->vm(); 125 126 } 126 127
Note: See TracChangeset
for help on using the changeset viewer.