OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2359 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2359 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
2360 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, rax), instr); | 2360 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, rax), instr); |
2361 } | 2361 } |
2362 | 2362 |
2363 | 2363 |
2364 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2364 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
2365 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, rax), instr); | 2365 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, rax), instr); |
2366 } | 2366 } |
2367 | 2367 |
2368 | 2368 |
2369 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) { | |
2370 LOperand* object = UseAtStart(instr->object()); | |
2371 LOperand* key = UseOrConstantAtStart(instr->key()); | |
2372 LDeleteProperty* result = new(zone()) LDeleteProperty(object, key); | |
2373 return MarkAsCall(DefineFixed(result, rax), instr); | |
2374 } | |
2375 | |
2376 | |
2377 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2369 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
2378 ASSERT(argument_count_ == 0); | 2370 ASSERT(argument_count_ == 0); |
2379 allocator_->MarkAsOsrEntry(); | 2371 allocator_->MarkAsOsrEntry(); |
2380 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2372 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
2381 return AssignEnvironment(new(zone()) LOsrEntry); | 2373 return AssignEnvironment(new(zone()) LOsrEntry); |
2382 } | 2374 } |
2383 | 2375 |
2384 | 2376 |
2385 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2377 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2386 LParameter* result = new(zone()) LParameter; | 2378 LParameter* result = new(zone()) LParameter; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2540 } | 2532 } |
2541 | 2533 |
2542 HEnvironment* outer = current_block_->last_environment()-> | 2534 HEnvironment* outer = current_block_->last_environment()-> |
2543 DiscardInlined(false); | 2535 DiscardInlined(false); |
2544 current_block_->UpdateEnvironment(outer); | 2536 current_block_->UpdateEnvironment(outer); |
2545 | 2537 |
2546 return pop; | 2538 return pop; |
2547 } | 2539 } |
2548 | 2540 |
2549 | 2541 |
2550 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | |
2551 LOperand* key = UseOrConstantAtStart(instr->key()); | |
2552 LOperand* object = UseOrConstantAtStart(instr->object()); | |
2553 LIn* result = new(zone()) LIn(key, object); | |
2554 return MarkAsCall(DefineFixed(result, rax), instr); | |
2555 } | |
2556 | |
2557 | |
2558 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { | 2542 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { |
2559 LOperand* object = UseFixed(instr->enumerable(), rax); | 2543 LOperand* object = UseFixed(instr->enumerable(), rax); |
2560 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); | 2544 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); |
2561 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); | 2545 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); |
2562 } | 2546 } |
2563 | 2547 |
2564 | 2548 |
2565 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { | 2549 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { |
2566 LOperand* map = UseRegister(instr->map()); | 2550 LOperand* map = UseRegister(instr->map()); |
2567 return AssignEnvironment(DefineAsRegister( | 2551 return AssignEnvironment(DefineAsRegister( |
(...skipping 11 matching lines...) Expand all Loading... |
2579 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2563 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2580 LOperand* object = UseRegister(instr->object()); | 2564 LOperand* object = UseRegister(instr->object()); |
2581 LOperand* index = UseTempRegister(instr->index()); | 2565 LOperand* index = UseTempRegister(instr->index()); |
2582 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2566 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2583 } | 2567 } |
2584 | 2568 |
2585 | 2569 |
2586 } } // namespace v8::internal | 2570 } } // namespace v8::internal |
2587 | 2571 |
2588 #endif // V8_TARGET_ARCH_X64 | 2572 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |