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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 2252 matching lines...) Expand 10 before | Expand all | Expand 10 after
2263 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); 2263 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4);
2264 break; 2264 break;
2265 2265
2266 default: 2266 default:
2267 UNREACHABLE(); 2267 UNREACHABLE();
2268 } 2268 }
2269 } 2269 }
2270 2270
2271 // Set both the prototype and constructor to have fast properties, and also 2271 // Set both the prototype and constructor to have fast properties, and also
2272 // freeze them in strong mode. 2272 // freeze them in strong mode.
2273 __ CallRuntime(is_strong(language_mode()) 2273 __ CallRuntime(Runtime::kFinalizeClassDefinition, 2);
2274 ? Runtime::kFinalizeClassDefinitionStrong
2275 : Runtime::kFinalizeClassDefinition,
2276 2);
2277 } 2274 }
2278 2275
2279 2276
2280 void FullCodeGenerator::EmitAssignment(Expression* expr, 2277 void FullCodeGenerator::EmitAssignment(Expression* expr,
2281 FeedbackVectorICSlot slot) { 2278 FeedbackVectorICSlot slot) {
2282 DCHECK(expr->IsValidReferenceExpressionOrThis()); 2279 DCHECK(expr->IsValidReferenceExpressionOrThis());
2283 2280
2284 Property* prop = expr->AsProperty(); 2281 Property* prop = expr->AsProperty();
2285 LhsKind assign_type = Property::GetAssignType(prop); 2282 LhsKind assign_type = Property::GetAssignType(prop);
2286 2283
(...skipping 3176 matching lines...) Expand 10 before | Expand all | Expand 10 after
5463 } 5460 }
5464 5461
5465 return INTERRUPT; 5462 return INTERRUPT;
5466 } 5463 }
5467 5464
5468 5465
5469 } // namespace internal 5466 } // namespace internal
5470 } // namespace v8 5467 } // namespace v8
5471 5468
5472 #endif // V8_TARGET_ARCH_ARM64 5469 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698