| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2358 | 2358 |
| 2359 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { | 2359 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { |
| 2360 LOperand* object = UseFixed(instr->value(), x0); | 2360 LOperand* object = UseFixed(instr->value(), x0); |
| 2361 LToFastProperties* result = new(zone()) LToFastProperties(object); | 2361 LToFastProperties* result = new(zone()) LToFastProperties(object); |
| 2362 return MarkAsCall(DefineFixed(result, x0), instr); | 2362 return MarkAsCall(DefineFixed(result, x0), instr); |
| 2363 } | 2363 } |
| 2364 | 2364 |
| 2365 | 2365 |
| 2366 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2366 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
| 2367 HTransitionElementsKind* instr) { | 2367 HTransitionElementsKind* instr) { |
| 2368 LOperand* object = UseRegister(instr->object()); | |
| 2369 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2368 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
| 2369 LOperand* object = UseRegister(instr->object()); |
| 2370 LTransitionElementsKind* result = | 2370 LTransitionElementsKind* result = |
| 2371 new(zone()) LTransitionElementsKind(object, NULL, | 2371 new(zone()) LTransitionElementsKind(object, NULL, |
| 2372 TempRegister(), TempRegister()); | 2372 TempRegister(), TempRegister()); |
| 2373 return result; | 2373 return result; |
| 2374 } else { | 2374 } else { |
| 2375 LOperand* object = UseFixed(instr->object(), x0); |
| 2375 LOperand* context = UseFixed(instr->context(), cp); | 2376 LOperand* context = UseFixed(instr->context(), cp); |
| 2376 LTransitionElementsKind* result = | 2377 LTransitionElementsKind* result = |
| 2377 new(zone()) LTransitionElementsKind(object, context, TempRegister()); | 2378 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); |
| 2378 return AssignPointerMap(result); | 2379 return MarkAsCall(result, instr); |
| 2379 } | 2380 } |
| 2380 } | 2381 } |
| 2381 | 2382 |
| 2382 | 2383 |
| 2383 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2384 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
| 2384 HTrapAllocationMemento* instr) { | 2385 HTrapAllocationMemento* instr) { |
| 2385 LOperand* object = UseRegister(instr->object()); | 2386 LOperand* object = UseRegister(instr->object()); |
| 2386 LOperand* temp1 = TempRegister(); | 2387 LOperand* temp1 = TempRegister(); |
| 2387 LOperand* temp2 = TempRegister(); | 2388 LOperand* temp2 = TempRegister(); |
| 2388 LTrapAllocationMemento* result = | 2389 LTrapAllocationMemento* result = |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 | 2568 |
| 2568 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2569 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2569 LOperand* receiver = UseRegister(instr->receiver()); | 2570 LOperand* receiver = UseRegister(instr->receiver()); |
| 2570 LOperand* function = UseRegister(instr->function()); | 2571 LOperand* function = UseRegister(instr->function()); |
| 2571 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2572 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 2572 return AssignEnvironment(DefineAsRegister(result)); | 2573 return AssignEnvironment(DefineAsRegister(result)); |
| 2573 } | 2574 } |
| 2574 | 2575 |
| 2575 | 2576 |
| 2576 } } // namespace v8::internal | 2577 } } // namespace v8::internal |
| OLD | NEW |