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