Changeset 177146 in webkit for trunk/Source/JavaScriptCore/jit/JITOperations.cpp
- Timestamp:
- Dec 11, 2014, 8:41:33 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITOperations.cpp
r177083 r177146 609 609 EncodedJSValue JIT_OPERATION operationCallEval(ExecState* exec, ExecState* execCallee) 610 610 { 611 ASSERT(exec->codeBlock()->codeType() != FunctionCode 611 612 ASSERT_UNUSED(exec, exec->codeBlock()->codeType() != FunctionCode 612 613 || !exec->codeBlock()->needsActivation() 613 614 || exec->hasActivation()); 614 615 615 execCallee->setScope(exec->scope());616 616 execCallee->setCodeBlock(0); 617 617 … … 632 632 VM* vm = &exec->vm(); 633 633 634 execCallee->setScope(exec->scope());635 634 execCallee->setCodeBlock(0); 636 635 … … 693 692 JSFunction* callee = jsCast<JSFunction*>(calleeAsFunctionCell); 694 693 JSScope* scope = callee->scopeUnchecked(); 695 execCallee->setScope(scope);696 694 ExecutableBase* executable = callee->executable(); 697 695 … … 703 701 FunctionExecutable* functionExecutable = static_cast<FunctionExecutable*>(executable); 704 702 JSObject* error = functionExecutable->prepareForExecution(execCallee, callee, &scope, kind); 705 execCallee->setScope(scope);706 703 if (error) { 707 704 throwStackOverflowError(exec); … … 758 755 JSFunction* function = jsCast<JSFunction*>(calleeAsFunctionCell); 759 756 JSScope* scope = function->scopeUnchecked(); 760 execCallee->setScope(scope);761 757 ExecutableBase* executable = function->executable(); 762 758 if (UNLIKELY(!executable->hasJITCodeFor(kind))) { 763 759 FunctionExecutable* functionExecutable = static_cast<FunctionExecutable*>(executable); 764 760 JSObject* error = functionExecutable->prepareForExecution(execCallee, function, &scope, kind); 765 execCallee->setScope(scope);766 761 if (error) { 767 762 exec->vm().throwException(exec, error); … … 1402 1397 } 1403 1398 1404 JSCell* JIT_OPERATION operationCreateActivation(ExecState* exec, int32_t offset) 1405 { 1406 VM& vm = exec->vm(); 1407 NativeCallFrameTracer tracer(&vm, exec); 1408 JSLexicalEnvironment* lexicalEnvironment = JSLexicalEnvironment::create(vm, exec, exec->registers() + offset, exec->codeBlock()); 1409 exec->setScope(lexicalEnvironment); 1399 JSCell* JIT_OPERATION operationCreateActivation(ExecState* exec, JSScope* currentScope, int32_t offset) 1400 { 1401 VM& vm = exec->vm(); 1402 NativeCallFrameTracer tracer(&vm, exec); 1403 JSLexicalEnvironment* lexicalEnvironment = JSLexicalEnvironment::create(vm, exec, exec->registers() + offset, currentScope, exec->codeBlock()); 1410 1404 return lexicalEnvironment; 1411 1405 }
Note:
See TracChangeset
for help on using the changeset viewer.