| 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 2349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2360 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 2361 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, rax), instr); | 2361 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, rax), instr); |
| 2362 } | 2362 } |
| 2363 | 2363 |
| 2364 | 2364 |
| 2365 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2365 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
| 2366 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, rax), instr); | 2366 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, rax), instr); |
| 2367 } | 2367 } |
| 2368 | 2368 |
| 2369 | 2369 |
| 2370 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) { | |
| 2371 LOperand* object = UseAtStart(instr->object()); | |
| 2372 LOperand* key = UseOrConstantAtStart(instr->key()); | |
| 2373 LDeleteProperty* result = new(zone()) LDeleteProperty(object, key); | |
| 2374 return MarkAsCall(DefineFixed(result, rax), instr); | |
| 2375 } | |
| 2376 | |
| 2377 | |
| 2378 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2370 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
| 2379 ASSERT(argument_count_ == 0); | 2371 ASSERT(argument_count_ == 0); |
| 2380 allocator_->MarkAsOsrEntry(); | 2372 allocator_->MarkAsOsrEntry(); |
| 2381 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2373 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
| 2382 return AssignEnvironment(new(zone()) LOsrEntry); | 2374 return AssignEnvironment(new(zone()) LOsrEntry); |
| 2383 } | 2375 } |
| 2384 | 2376 |
| 2385 | 2377 |
| 2386 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2378 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2387 LParameter* result = new(zone()) LParameter; | 2379 LParameter* result = new(zone()) LParameter; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2541 } | 2533 } |
| 2542 | 2534 |
| 2543 HEnvironment* outer = current_block_->last_environment()-> | 2535 HEnvironment* outer = current_block_->last_environment()-> |
| 2544 DiscardInlined(false); | 2536 DiscardInlined(false); |
| 2545 current_block_->UpdateEnvironment(outer); | 2537 current_block_->UpdateEnvironment(outer); |
| 2546 | 2538 |
| 2547 return pop; | 2539 return pop; |
| 2548 } | 2540 } |
| 2549 | 2541 |
| 2550 | 2542 |
| 2551 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | |
| 2552 LOperand* key = UseOrConstantAtStart(instr->key()); | |
| 2553 LOperand* object = UseOrConstantAtStart(instr->object()); | |
| 2554 LIn* result = new(zone()) LIn(key, object); | |
| 2555 return MarkAsCall(DefineFixed(result, rax), instr); | |
| 2556 } | |
| 2557 | |
| 2558 | |
| 2559 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { | 2543 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { |
| 2560 LOperand* object = UseFixed(instr->enumerable(), rax); | 2544 LOperand* object = UseFixed(instr->enumerable(), rax); |
| 2561 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); | 2545 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); |
| 2562 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); | 2546 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); |
| 2563 } | 2547 } |
| 2564 | 2548 |
| 2565 | 2549 |
| 2566 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { | 2550 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { |
| 2567 LOperand* map = UseRegister(instr->map()); | 2551 LOperand* map = UseRegister(instr->map()); |
| 2568 return AssignEnvironment(DefineAsRegister( | 2552 return AssignEnvironment(DefineAsRegister( |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2580 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2564 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2581 LOperand* object = UseRegister(instr->object()); | 2565 LOperand* object = UseRegister(instr->object()); |
| 2582 LOperand* index = UseTempRegister(instr->index()); | 2566 LOperand* index = UseTempRegister(instr->index()); |
| 2583 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2567 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2584 } | 2568 } |
| 2585 | 2569 |
| 2586 | 2570 |
| 2587 } } // namespace v8::internal | 2571 } } // namespace v8::internal |
| 2588 | 2572 |
| 2589 #endif // V8_TARGET_ARCH_X64 | 2573 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |