Ignore:
Timestamp:
Sep 11, 2014, 11:18:14 AM (11 years ago)
Author:
[email protected]
Message:

Rename activation to be more in line with spec language
https://bugs.webkit.org/show_bug.cgi?id=136721

Reviewed by Michael Saboff.

Somewhat bigger than the last one, but still just a rename.

(JSC::computeUsesForBytecodeOffset):
(JSC::computeDefsForBytecodeOffset):

  • bytecode/CallVariant.h:
  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::dumpBytecode):
(JSC::CodeBlock::CodeBlock):
(JSC::CodeBlock::finalizeUnconditionally):
(JSC::CodeBlock::isCaptured):
(JSC::CodeBlock::nameForRegister):

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::setActivationRegister):
(JSC::CodeBlock::activationRegister):
(JSC::CodeBlock::uncheckedActivationRegister):
(JSC::CodeBlock::needsActivation):

  • bytecode/Instruction.h:
  • bytecode/UnlinkedCodeBlock.h:

(JSC::UnlinkedCodeBlock::setActivationRegister):
(JSC::UnlinkedCodeBlock::activationRegister):
(JSC::UnlinkedCodeBlock::hasActivationRegister):

  • bytecompiler/BytecodeGenerator.cpp:

(JSC::BytecodeGenerator::BytecodeGenerator):
(JSC::BytecodeGenerator::emitReturn):

  • bytecompiler/BytecodeGenerator.h:
  • debugger/DebuggerCallFrame.cpp:

(JSC::DebuggerCallFrame::scope):

  • debugger/DebuggerScope.cpp:

(JSC::DebuggerScope::isFunctionOrEvalScope):

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::parseBlock):

  • dfg/DFGCapabilities.cpp:

(JSC::DFG::capabilityLevel):

  • dfg/DFGGraph.cpp:

(JSC::DFG::Graph::tryGetActivation):
(JSC::DFG::Graph::tryGetRegisters):

  • dfg/DFGGraph.h:
  • dfg/DFGNodeType.h:
  • dfg/DFGOperations.cpp:
  • dfg/DFGSpeculativeJIT32_64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

  • interpreter/CallFrame.cpp:

(JSC::CallFrame::lexicalEnvironment):
(JSC::CallFrame::setActivation):
(JSC::CallFrame::activation): Deleted.

  • interpreter/CallFrame.h:
  • interpreter/Interpreter.cpp:

(JSC::unwindCallFrame):

  • interpreter/Register.h:
  • jit/JIT.cpp:

(JSC::JIT::privateCompileMainPass):

  • jit/JIT.h:
  • jit/JITOpcodes.cpp:

(JSC::JIT::emit_op_tear_off_lexical_environment):
(JSC::JIT::emit_op_tear_off_arguments):
(JSC::JIT::emit_op_create_lexical_environment):
(JSC::JIT::emit_op_tear_off_activation): Deleted.
(JSC::JIT::emit_op_create_activation): Deleted.

  • jit/JITOpcodes32_64.cpp:

(JSC::JIT::emit_op_tear_off_lexical_environment):
(JSC::JIT::emit_op_tear_off_arguments):
(JSC::JIT::emit_op_create_lexical_environment):
(JSC::JIT::emit_op_tear_off_activation): Deleted.
(JSC::JIT::emit_op_create_activation): Deleted.

  • jit/JITOperations.cpp:
  • jit/JITOperations.h:
  • llint/LLIntSlowPaths.cpp:

(JSC::LLInt::LLINT_SLOW_PATH_DECL):

  • llint/LLIntSlowPaths.h:
  • llint/LowLevelInterpreter32_64.asm:
  • llint/LowLevelInterpreter64.asm:
  • runtime/Arguments.cpp:

(JSC::Arguments::visitChildren):
(JSC::Arguments::tearOff):
(JSC::Arguments::didTearOffActivation):

  • runtime/Arguments.h:

(JSC::Arguments::offsetOfActivation):
(JSC::Arguments::argument):
(JSC::Arguments::finishCreation):

  • runtime/CommonSlowPaths.cpp:
  • runtime/JSFunction.h:
  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::reset):
(JSC::JSGlobalObject::visitChildren):

  • runtime/JSGlobalObject.h:

(JSC::JSGlobalObject::activationStructure):

  • runtime/JSLexicalEnvironment.cpp: Renamed from Source/JavaScriptCore/runtime/JSActivation.cpp.

(JSC::JSLexicalEnvironment::visitChildren):
(JSC::JSLexicalEnvironment::symbolTableGet):
(JSC::JSLexicalEnvironment::symbolTablePut):
(JSC::JSLexicalEnvironment::getOwnNonIndexPropertyNames):
(JSC::JSLexicalEnvironment::symbolTablePutWithAttributes):
(JSC::JSLexicalEnvironment::getOwnPropertySlot):
(JSC::JSLexicalEnvironment::put):
(JSC::JSLexicalEnvironment::deleteProperty):
(JSC::JSLexicalEnvironment::toThis):
(JSC::JSLexicalEnvironment::argumentsGetter):

  • runtime/JSLexicalEnvironment.h: Renamed from Source/JavaScriptCore/runtime/JSActivation.h.

(JSC::JSLexicalEnvironment::create):
(JSC::JSLexicalEnvironment::createStructure):
(JSC::JSLexicalEnvironment::JSLexicalEnvironment):
(JSC::asActivation):
(JSC::Register::lexicalEnvironment):
(JSC::JSLexicalEnvironment::registersOffset):
(JSC::JSLexicalEnvironment::tearOff):
(JSC::JSLexicalEnvironment::isTornOff):
(JSC::JSLexicalEnvironment::storageOffset):
(JSC::JSLexicalEnvironment::storage):
(JSC::JSLexicalEnvironment::allocationSize):
(JSC::JSLexicalEnvironment::isValidIndex):
(JSC::JSLexicalEnvironment::isValid):
(JSC::JSLexicalEnvironment::registerAt):

  • runtime/JSObject.h:
  • runtime/JSScope.cpp:

(JSC::abstractAccess):

  • runtime/JSScope.h:

(JSC::ResolveOp::ResolveOp):

  • runtime/JSSymbolTableObject.cpp:
  • runtime/StrictEvalActivation.h:

(JSC::StrictEvalActivation::create):

  • runtime/VM.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp

    r173199 r173517  
    3939#include "JIT.h"
    4040#include "JITExceptions.h"
    41 #include "JSActivation.h"
     41#include "JSLexicalEnvironment.h"
    4242#include "JSCInlines.h"
    4343#include "JSCJSValue.h"
     
    471471    // This stack check is done in the prologue for a function call, and the
    472472    // CallFrame is not completely set up yet. For example, if the frame needs
    473     // an activation object, the activation object will only be set up after
    474     // we start executing the function. If we need to throw a StackOverflowError
    475     // here, then we need to tell the prologue to start the stack unwinding from
    476     // the caller frame (which is fully set up) instead. To do that, we return
    477     // the caller's CallFrame in the second return value.
     473    // a lexical environment object, the lexical environment object will only be
     474    // set up after we start executing the function. If we need to throw a
     475    // StackOverflowError here, then we need to tell the prologue to start the
     476    // stack unwinding from the caller frame (which is fully set up) instead.
     477    // To do that, we return the caller's CallFrame in the second return value.
    478478    //
    479479    // If the stack check succeeds and we don't need to throw the error, then
     
    498498}
    499499
    500 LLINT_SLOW_PATH_DECL(slow_path_create_activation)
     500LLINT_SLOW_PATH_DECL(slow_path_create_lexical_environment)
    501501{
    502502    LLINT_BEGIN();
    503503#if LLINT_SLOW_PATH_TRACING
    504     dataLogF("Creating an activation, exec = %p!\n", exec);
     504    dataLogF("Creating an lexicalEnvironment, exec = %p!\n", exec);
    505505#endif
    506     JSActivation* activation = JSActivation::create(vm, exec, exec->codeBlock());
    507     exec->setScope(activation);
    508     LLINT_RETURN(JSValue(activation));
     506    JSLexicalEnvironment* lexicalEnvironment = JSLexicalEnvironment::create(vm, exec, exec->codeBlock());
     507    exec->setScope(lexicalEnvironment);
     508    LLINT_RETURN(JSValue(lexicalEnvironment));
    509509}
    510510
     
    12461246}
    12471247
    1248 LLINT_SLOW_PATH_DECL(slow_path_tear_off_activation)
     1248LLINT_SLOW_PATH_DECL(slow_path_tear_off_lexical_environment)
    12491249{
    12501250    LLINT_BEGIN();
    12511251    ASSERT(exec->codeBlock()->needsActivation());
    1252     jsCast<JSActivation*>(LLINT_OP(1).jsValue())->tearOff(vm);
     1252    jsCast<JSLexicalEnvironment*>(LLINT_OP(1).jsValue())->tearOff(vm);
    12531253    LLINT_END();
    12541254}
     
    12601260    Arguments* arguments = jsCast<Arguments*>(exec->uncheckedR(unmodifiedArgumentsRegister(VirtualRegister(pc[1].u.operand)).offset()).jsValue());
    12611261    if (JSValue activationValue = LLINT_OP_C(2).jsValue())
    1262         arguments->didTearOffActivation(exec, jsCast<JSActivation*>(activationValue));
     1262        arguments->didTearOffActivation(exec, jsCast<JSLexicalEnvironment*>(activationValue));
    12631263    else
    12641264        arguments->tearOff(exec);
Note: See TracChangeset for help on using the changeset viewer.