Changeset 47183 in webkit


Ignore:
Timestamp:
Aug 12, 2009 10:21:48 PM (15 years ago)
Author:
barraclough@apple.com
Message:

Ooops - moved code that had been accidentally added to op_new_func instead of
op_new_func_exp, to where it shoulds be.

Reviewed by Maciej Stachoviak.

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::privateExecute):

  • wtf/Platform.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r47159 r47183  
     12009-08-12  Gavin Barraclough  <barraclough@apple.com>
     2
     3        Reviewed by Maciej Stachoviak.
     4
     5        Ooops - moved code that had been accidentally added to op_new_func instead of
     6        op_new_func_exp, to where it shoulds be.
     7
     8        * interpreter/Interpreter.cpp:
     9        (JSC::Interpreter::privateExecute):
     10        * wtf/Platform.h:
     11
    1122009-08-12  Ada Chan  <adachan@apple.com>
    213
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r47089 r47183  
    29202920        */
    29212921        int dst = (++vPC)->u.operand;
     2922        int func = (++vPC)->u.operand;
     2923
     2924        callFrame->r(dst) = JSValue(callFrame->codeBlock()->function(func)->make(callFrame, callFrame->scopeChain()));
     2925
     2926        ++vPC;
     2927        NEXT_INSTRUCTION();
     2928    }
     2929    DEFINE_OPCODE(op_new_func_exp) {
     2930        /* new_func_exp dst(r) func(f)
     2931
     2932           Constructs a new Function instance from function func and
     2933           the current scope chain using the original Function
     2934           constructor, using the rules for function expressions, and
     2935           puts the result in register dst.
     2936        */
     2937        int dst = (++vPC)->u.operand;
    29222938        int funcIndex = (++vPC)->u.operand;
    29232939
     
    29382954
    29392955        callFrame->r(dst) = JSValue(func);
    2940 
    2941         ++vPC;
    2942         NEXT_INSTRUCTION();
    2943     }
    2944     DEFINE_OPCODE(op_new_func_exp) {
    2945         /* new_func_exp dst(r) func(f)
    2946 
    2947            Constructs a new Function instance from function func and
    2948            the current scope chain using the original Function
    2949            constructor, using the rules for function expressions, and
    2950            puts the result in register dst.
    2951         */
    2952         int dst = (++vPC)->u.operand;
    2953         int func = (++vPC)->u.operand;
    2954 
    2955         callFrame->r(dst) = JSValue(callFrame->codeBlock()->function(func)->make(callFrame, callFrame->scopeChain()));
    29562956
    29572957        ++vPC;
Note: See TracChangeset for help on using the changeset viewer.