| 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 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2634 default: | 2634 default: |
| 2635 UNREACHABLE(); | 2635 UNREACHABLE(); |
| 2636 } | 2636 } |
| 2637 } | 2637 } |
| 2638 | 2638 |
| 2639 // prototype | 2639 // prototype |
| 2640 __ CallRuntime(Runtime::kToFastProperties, 1); | 2640 __ CallRuntime(Runtime::kToFastProperties, 1); |
| 2641 | 2641 |
| 2642 // constructor | 2642 // constructor |
| 2643 __ CallRuntime(Runtime::kToFastProperties, 1); | 2643 __ CallRuntime(Runtime::kToFastProperties, 1); |
| 2644 |
| 2645 if (is_strong(language_mode())) { |
| 2646 __ ld(scratch, |
| 2647 FieldMemOperand(v0, JSFunction::kPrototypeOrInitialMapOffset)); |
| 2648 __ Push(v0, scratch); |
| 2649 // TODO(conradw): It would be more efficient to define the properties with |
| 2650 // the right attributes the first time round. |
| 2651 // Freeze the prototype. |
| 2652 __ CallRuntime(Runtime::kObjectFreeze, 1); |
| 2653 // Freeze the constructor. |
| 2654 __ CallRuntime(Runtime::kObjectFreeze, 1); |
| 2655 } |
| 2644 } | 2656 } |
| 2645 | 2657 |
| 2646 | 2658 |
| 2647 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { | 2659 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
| 2648 __ mov(a0, result_register()); | 2660 __ mov(a0, result_register()); |
| 2649 __ pop(a1); | 2661 __ pop(a1); |
| 2650 Handle<Code> code = | 2662 Handle<Code> code = |
| 2651 CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); | 2663 CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); |
| 2652 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. | 2664 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. |
| 2653 CallIC(code, expr->BinaryOperationFeedbackId()); | 2665 CallIC(code, expr->BinaryOperationFeedbackId()); |
| (...skipping 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5587 reinterpret_cast<uint64_t>( | 5599 reinterpret_cast<uint64_t>( |
| 5588 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5600 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5589 return OSR_AFTER_STACK_CHECK; | 5601 return OSR_AFTER_STACK_CHECK; |
| 5590 } | 5602 } |
| 5591 | 5603 |
| 5592 | 5604 |
| 5593 } // namespace internal | 5605 } // namespace internal |
| 5594 } // namespace v8 | 5606 } // namespace v8 |
| 5595 | 5607 |
| 5596 #endif // V8_TARGET_ARCH_MIPS64 | 5608 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |