Changeset 208704 in webkit for trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
- Timestamp:
- Nov 14, 2016, 1:14:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
r208637 r208704 5326 5326 5327 5327 case op_new_func: 5328 case op_new_generator_func: { 5328 case op_new_generator_func: 5329 case op_new_async_func: { 5329 5330 FunctionExecutable* decl = m_inlineStackTop->m_profiledBlock->functionDecl(currentInstruction[3].u.operand); 5330 5331 FrozenValue* frozen = m_graph.freezeStrong(decl); 5331 NodeType op = (opcodeID == op_new_generator_func) ? NewGeneratorFunction : NewFunction; 5332 NodeType op = (opcodeID == op_new_generator_func) ? NewGeneratorFunction : 5333 (opcodeID == op_new_async_func) ? NewAsyncFunction : NewFunction; 5332 5334 set(VirtualRegister(currentInstruction[1].u.operand), addToGraph(op, OpInfo(frozen), get(VirtualRegister(currentInstruction[2].u.operand)))); 5333 5335 static_assert(OPCODE_LENGTH(op_new_func) == OPCODE_LENGTH(op_new_generator_func), "The length of op_new_func should eqaual to one of op_new_generator_func"); 5336 static_assert(OPCODE_LENGTH(op_new_func) == OPCODE_LENGTH(op_new_async_func), "The length of op_new_func should eqaual to one of op_new_async_func"); 5334 5337 NEXT_OPCODE(op_new_func); 5335 5338 } 5336 5339 5337 5340 case op_new_func_exp: 5338 case op_new_generator_func_exp: { 5341 case op_new_generator_func_exp: 5342 case op_new_async_func_exp: { 5339 5343 FunctionExecutable* expr = m_inlineStackTop->m_profiledBlock->functionExpr(currentInstruction[3].u.operand); 5340 5344 FrozenValue* frozen = m_graph.freezeStrong(expr); 5341 NodeType op = (opcodeID == op_new_generator_func_exp) ? NewGeneratorFunction : NewFunction; 5345 NodeType op = (opcodeID == op_new_generator_func_exp) ? NewGeneratorFunction : 5346 (opcodeID == op_new_async_func_exp) ? NewAsyncFunction : NewFunction; 5342 5347 set(VirtualRegister(currentInstruction[1].u.operand), addToGraph(op, OpInfo(frozen), get(VirtualRegister(currentInstruction[2].u.operand)))); 5343 5348 5344 5349 static_assert(OPCODE_LENGTH(op_new_func_exp) == OPCODE_LENGTH(op_new_generator_func_exp), "The length of op_new_func_exp should eqaual to one of op_new_generator_func_exp"); 5350 static_assert(OPCODE_LENGTH(op_new_func_exp) == OPCODE_LENGTH(op_new_async_func_exp), "The length of op_new_func_exp should eqaual to one of op_new_async_func_exp"); 5345 5351 NEXT_OPCODE(op_new_func_exp); 5346 5352 }
Note:
See TracChangeset
for help on using the changeset viewer.