OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2541 } | 2541 } |
2542 } | 2542 } |
2543 // Non-initializing assignments to consts are ignored. | 2543 // Non-initializing assignments to consts are ignored. |
2544 } | 2544 } |
2545 | 2545 |
2546 | 2546 |
2547 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { | 2547 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
2548 // Assignment to a property, using a named store IC. | 2548 // Assignment to a property, using a named store IC. |
2549 Property* prop = expr->target()->AsProperty(); | 2549 Property* prop = expr->target()->AsProperty(); |
2550 ASSERT(prop != NULL); | 2550 ASSERT(prop != NULL); |
2551 ASSERT(prop->key()->AsLiteral() != NULL); | 2551 ASSERT(prop->key()->IsLiteral()); |
2552 | 2552 |
2553 // Record source code position before IC call. | 2553 // Record source code position before IC call. |
2554 SetSourcePosition(expr->position()); | 2554 SetSourcePosition(expr->position()); |
2555 __ mov(a0, result_register()); // Load the value. | 2555 __ mov(a0, result_register()); // Load the value. |
2556 __ li(a2, Operand(prop->key()->AsLiteral()->value())); | 2556 __ li(a2, Operand(prop->key()->AsLiteral()->value())); |
2557 __ pop(a1); | 2557 __ pop(a1); |
2558 | 2558 |
2559 CallStoreIC(expr->AssignmentFeedbackId()); | 2559 CallStoreIC(expr->AssignmentFeedbackId()); |
2560 | 2560 |
2561 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); | 2561 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
(...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4862 Assembler::target_address_at(pc_immediate_load_address)) == | 4862 Assembler::target_address_at(pc_immediate_load_address)) == |
4863 reinterpret_cast<uint32_t>( | 4863 reinterpret_cast<uint32_t>( |
4864 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4864 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4865 return OSR_AFTER_STACK_CHECK; | 4865 return OSR_AFTER_STACK_CHECK; |
4866 } | 4866 } |
4867 | 4867 |
4868 | 4868 |
4869 } } // namespace v8::internal | 4869 } } // namespace v8::internal |
4870 | 4870 |
4871 #endif // V8_TARGET_ARCH_MIPS | 4871 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |