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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 __ push(a1); | 1634 __ push(a1); |
1635 } else { | 1635 } else { |
1636 VisitForStackValue(expression); | 1636 VisitForStackValue(expression); |
1637 } | 1637 } |
1638 } | 1638 } |
1639 | 1639 |
1640 | 1640 |
1641 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { | 1641 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
1642 Comment cmnt(masm_, "[ ObjectLiteral"); | 1642 Comment cmnt(masm_, "[ ObjectLiteral"); |
1643 | 1643 |
1644 expr->BuildConstantProperties(isolate()); | |
1645 Handle<FixedArray> constant_properties = expr->constant_properties(); | 1644 Handle<FixedArray> constant_properties = expr->constant_properties(); |
1646 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1645 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1647 __ ld(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset)); | 1646 __ ld(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset)); |
1648 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); | 1647 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
1649 __ li(a1, Operand(constant_properties)); | 1648 __ li(a1, Operand(constant_properties)); |
1650 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); | 1649 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); |
1651 if (MustCreateObjectLiteralWithRuntime(expr)) { | 1650 if (MustCreateObjectLiteralWithRuntime(expr)) { |
1652 __ Push(a3, a2, a1, a0); | 1651 __ Push(a3, a2, a1, a0); |
1653 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); | 1652 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); |
1654 } else { | 1653 } else { |
(...skipping 3871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5526 reinterpret_cast<uint64_t>( | 5525 reinterpret_cast<uint64_t>( |
5527 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5526 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5528 return OSR_AFTER_STACK_CHECK; | 5527 return OSR_AFTER_STACK_CHECK; |
5529 } | 5528 } |
5530 | 5529 |
5531 | 5530 |
5532 } // namespace internal | 5531 } // namespace internal |
5533 } // namespace v8 | 5532 } // namespace v8 |
5534 | 5533 |
5535 #endif // V8_TARGET_ARCH_MIPS64 | 5534 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |