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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1808 } else { | 1808 } else { |
1809 __ Drop(3); | 1809 __ Drop(3); |
1810 } | 1810 } |
1811 break; | 1811 break; |
1812 | 1812 |
1813 case ObjectLiteral::Property::PROTOTYPE: | 1813 case ObjectLiteral::Property::PROTOTYPE: |
1814 UNREACHABLE(); | 1814 UNREACHABLE(); |
1815 break; | 1815 break; |
1816 | 1816 |
1817 case ObjectLiteral::Property::GETTER: | 1817 case ObjectLiteral::Property::GETTER: |
1818 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 3); | 1818 __ li(a0, Operand(Smi::FromInt(NONE))); |
| 1819 __ push(a0); |
| 1820 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4); |
1819 break; | 1821 break; |
1820 | 1822 |
1821 case ObjectLiteral::Property::SETTER: | 1823 case ObjectLiteral::Property::SETTER: |
1822 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 3); | 1824 __ li(a0, Operand(Smi::FromInt(NONE))); |
| 1825 __ push(a0); |
| 1826 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); |
1823 break; | 1827 break; |
1824 } | 1828 } |
1825 } | 1829 } |
1826 } | 1830 } |
1827 | 1831 |
1828 if (expr->has_function()) { | 1832 if (expr->has_function()) { |
1829 DCHECK(result_saved); | 1833 DCHECK(result_saved); |
1830 __ lw(a0, MemOperand(sp)); | 1834 __ lw(a0, MemOperand(sp)); |
1831 __ push(a0); | 1835 __ push(a0); |
1832 __ CallRuntime(Runtime::kToFastProperties, 1); | 1836 __ CallRuntime(Runtime::kToFastProperties, 1); |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2534 switch (property->kind()) { | 2538 switch (property->kind()) { |
2535 case ObjectLiteral::Property::CONSTANT: | 2539 case ObjectLiteral::Property::CONSTANT: |
2536 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 2540 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
2537 case ObjectLiteral::Property::PROTOTYPE: | 2541 case ObjectLiteral::Property::PROTOTYPE: |
2538 UNREACHABLE(); | 2542 UNREACHABLE(); |
2539 case ObjectLiteral::Property::COMPUTED: | 2543 case ObjectLiteral::Property::COMPUTED: |
2540 __ CallRuntime(Runtime::kDefineClassMethod, 3); | 2544 __ CallRuntime(Runtime::kDefineClassMethod, 3); |
2541 break; | 2545 break; |
2542 | 2546 |
2543 case ObjectLiteral::Property::GETTER: | 2547 case ObjectLiteral::Property::GETTER: |
2544 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 3); | 2548 __ li(a0, Operand(Smi::FromInt(DONT_ENUM))); |
| 2549 __ push(a0); |
| 2550 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4); |
2545 break; | 2551 break; |
2546 | 2552 |
2547 case ObjectLiteral::Property::SETTER: | 2553 case ObjectLiteral::Property::SETTER: |
2548 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 3); | 2554 __ li(a0, Operand(Smi::FromInt(DONT_ENUM))); |
| 2555 __ push(a0); |
| 2556 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); |
2549 break; | 2557 break; |
2550 | 2558 |
2551 default: | 2559 default: |
2552 UNREACHABLE(); | 2560 UNREACHABLE(); |
2553 } | 2561 } |
2554 } | 2562 } |
2555 | 2563 |
2556 // prototype | 2564 // prototype |
2557 __ CallRuntime(Runtime::kToFastProperties, 1); | 2565 __ CallRuntime(Runtime::kToFastProperties, 1); |
2558 | 2566 |
(...skipping 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5359 Assembler::target_address_at(pc_immediate_load_address)) == | 5367 Assembler::target_address_at(pc_immediate_load_address)) == |
5360 reinterpret_cast<uint32_t>( | 5368 reinterpret_cast<uint32_t>( |
5361 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5369 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5362 return OSR_AFTER_STACK_CHECK; | 5370 return OSR_AFTER_STACK_CHECK; |
5363 } | 5371 } |
5364 | 5372 |
5365 | 5373 |
5366 } } // namespace v8::internal | 5374 } } // namespace v8::internal |
5367 | 5375 |
5368 #endif // V8_TARGET_ARCH_MIPS | 5376 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |