| 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 2547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2558 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); | 2558 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); |
| 2559 break; | 2559 break; |
| 2560 | 2560 |
| 2561 default: | 2561 default: |
| 2562 UNREACHABLE(); | 2562 UNREACHABLE(); |
| 2563 } | 2563 } |
| 2564 } | 2564 } |
| 2565 | 2565 |
| 2566 // Set both the prototype and constructor to have fast properties, and also | 2566 // Set both the prototype and constructor to have fast properties, and also |
| 2567 // freeze them in strong mode. | 2567 // freeze them in strong mode. |
| 2568 __ CallRuntime(is_strong(language_mode()) | 2568 __ CallRuntime(Runtime::kFinalizeClassDefinition, 2); |
| 2569 ? Runtime::kFinalizeClassDefinitionStrong | |
| 2570 : Runtime::kFinalizeClassDefinition, | |
| 2571 2); | |
| 2572 } | 2569 } |
| 2573 | 2570 |
| 2574 | 2571 |
| 2575 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { | 2572 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
| 2576 __ mov(a0, result_register()); | 2573 __ mov(a0, result_register()); |
| 2577 __ pop(a1); | 2574 __ pop(a1); |
| 2578 Handle<Code> code = | 2575 Handle<Code> code = |
| 2579 CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); | 2576 CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); |
| 2580 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. | 2577 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. |
| 2581 CallIC(code, expr->BinaryOperationFeedbackId()); | 2578 CallIC(code, expr->BinaryOperationFeedbackId()); |
| (...skipping 2849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5431 reinterpret_cast<uint32_t>( | 5428 reinterpret_cast<uint32_t>( |
| 5432 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5429 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5433 return OSR_AFTER_STACK_CHECK; | 5430 return OSR_AFTER_STACK_CHECK; |
| 5434 } | 5431 } |
| 5435 | 5432 |
| 5436 | 5433 |
| 5437 } // namespace internal | 5434 } // namespace internal |
| 5438 } // namespace v8 | 5435 } // namespace v8 |
| 5439 | 5436 |
| 5440 #endif // V8_TARGET_ARCH_MIPS | 5437 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |