| 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 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2345 default: | 2345 default: |
| 2346 UNREACHABLE(); | 2346 UNREACHABLE(); |
| 2347 } | 2347 } |
| 2348 } | 2348 } |
| 2349 | 2349 |
| 2350 // prototype | 2350 // prototype |
| 2351 __ CallRuntime(Runtime::kToFastProperties, 1); | 2351 __ CallRuntime(Runtime::kToFastProperties, 1); |
| 2352 | 2352 |
| 2353 // constructor | 2353 // constructor |
| 2354 __ CallRuntime(Runtime::kToFastProperties, 1); | 2354 __ CallRuntime(Runtime::kToFastProperties, 1); |
| 2355 |
| 2356 if (is_strong(language_mode())) { |
| 2357 __ Ldr(scratch, |
| 2358 FieldMemOperand(x0, JSFunction::kPrototypeOrInitialMapOffset)); |
| 2359 __ push(x0); |
| 2360 __ Push(scratch); |
| 2361 __ CallRuntime(Runtime::kObjectFreeze, 1); |
| 2362 // TODO(conradw): It would be more efficient to define the properties with |
| 2363 // the right attributes the first time round. |
| 2364 __ CallRuntime(Runtime::kObjectFreeze, 1); |
| 2365 } |
| 2355 } | 2366 } |
| 2356 | 2367 |
| 2357 | 2368 |
| 2358 void FullCodeGenerator::EmitAssignment(Expression* expr, | 2369 void FullCodeGenerator::EmitAssignment(Expression* expr, |
| 2359 FeedbackVectorICSlot slot) { | 2370 FeedbackVectorICSlot slot) { |
| 2360 DCHECK(expr->IsValidReferenceExpression()); | 2371 DCHECK(expr->IsValidReferenceExpression()); |
| 2361 | 2372 |
| 2362 Property* prop = expr->AsProperty(); | 2373 Property* prop = expr->AsProperty(); |
| 2363 LhsKind assign_type = Property::GetAssignType(prop); | 2374 LhsKind assign_type = Property::GetAssignType(prop); |
| 2364 | 2375 |
| (...skipping 3237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5602 } | 5613 } |
| 5603 | 5614 |
| 5604 return INTERRUPT; | 5615 return INTERRUPT; |
| 5605 } | 5616 } |
| 5606 | 5617 |
| 5607 | 5618 |
| 5608 } // namespace internal | 5619 } // namespace internal |
| 5609 } // namespace v8 | 5620 } // namespace v8 |
| 5610 | 5621 |
| 5611 #endif // V8_TARGET_ARCH_ARM64 | 5622 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |