| 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2474 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); | 2474 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); |
| 2475 break; | 2475 break; |
| 2476 | 2476 |
| 2477 default: | 2477 default: |
| 2478 UNREACHABLE(); | 2478 UNREACHABLE(); |
| 2479 } | 2479 } |
| 2480 } | 2480 } |
| 2481 | 2481 |
| 2482 // Set both the prototype and constructor to have fast properties, and also | 2482 // Set both the prototype and constructor to have fast properties, and also |
| 2483 // freeze them in strong mode. | 2483 // freeze them in strong mode. |
| 2484 __ CallRuntime(is_strong(language_mode()) | 2484 __ CallRuntime(Runtime::kFinalizeClassDefinition, 2); |
| 2485 ? Runtime::kFinalizeClassDefinitionStrong | |
| 2486 : Runtime::kFinalizeClassDefinition, | |
| 2487 2); | |
| 2488 } | 2485 } |
| 2489 | 2486 |
| 2490 | 2487 |
| 2491 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { | 2488 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
| 2492 __ Pop(rdx); | 2489 __ Pop(rdx); |
| 2493 Handle<Code> code = | 2490 Handle<Code> code = |
| 2494 CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); | 2491 CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); |
| 2495 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. | 2492 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. |
| 2496 CallIC(code, expr->BinaryOperationFeedbackId()); | 2493 CallIC(code, expr->BinaryOperationFeedbackId()); |
| 2497 patch_site.EmitPatchInfo(); | 2494 patch_site.EmitPatchInfo(); |
| (...skipping 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5355 Assembler::target_address_at(call_target_address, | 5352 Assembler::target_address_at(call_target_address, |
| 5356 unoptimized_code)); | 5353 unoptimized_code)); |
| 5357 return OSR_AFTER_STACK_CHECK; | 5354 return OSR_AFTER_STACK_CHECK; |
| 5358 } | 5355 } |
| 5359 | 5356 |
| 5360 | 5357 |
| 5361 } // namespace internal | 5358 } // namespace internal |
| 5362 } // namespace v8 | 5359 } // namespace v8 |
| 5363 | 5360 |
| 5364 #endif // V8_TARGET_ARCH_X64 | 5361 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |