OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |