Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.cc

Issue 1270393002: [strong] Refactor out separate strong runtime call for class objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698