OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/ic/call-optimization.h" | 7 #include "src/ic/call-optimization.h" |
8 #include "src/ic/handler-compiler.h" | 8 #include "src/ic/handler-compiler.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 Handle<WeakCell> weak_cell = factory()->NewWeakCell(cell); | 351 Handle<WeakCell> weak_cell = factory()->NewWeakCell(cell); |
352 __ LoadWeakValue(result, weak_cell, &miss); | 352 __ LoadWeakValue(result, weak_cell, &miss); |
353 __ Ldr(result, FieldMemOperand(result, PropertyCell::kValueOffset)); | 353 __ Ldr(result, FieldMemOperand(result, PropertyCell::kValueOffset)); |
354 | 354 |
355 // Check for deleted property if property can actually be deleted. | 355 // Check for deleted property if property can actually be deleted. |
356 if (is_configurable) { | 356 if (is_configurable) { |
357 __ JumpIfRoot(result, Heap::kTheHoleValueRootIndex, &miss); | 357 __ JumpIfRoot(result, Heap::kTheHoleValueRootIndex, &miss); |
358 } | 358 } |
359 | 359 |
360 Counters* counters = isolate()->counters(); | 360 Counters* counters = isolate()->counters(); |
361 __ IncrementCounter(counters->named_load_global_stub(), 1, x1, x3); | 361 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, x1, x3); |
362 if (IC::ICUseVector(kind())) { | 362 if (IC::ICUseVector(kind())) { |
363 DiscardVectorAndSlot(); | 363 DiscardVectorAndSlot(); |
364 } | 364 } |
365 __ Ret(); | 365 __ Ret(); |
366 | 366 |
367 FrontendFooter(name, &miss); | 367 FrontendFooter(name, &miss); |
368 | 368 |
369 // Return the generated code. | 369 // Return the generated code. |
370 return GetCode(kind(), Code::NORMAL, name); | 370 return GetCode(kind(), Code::NORMAL, name); |
371 } | 371 } |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 // Return the generated code. | 785 // Return the generated code. |
786 return GetCode(kind(), Code::FAST, name); | 786 return GetCode(kind(), Code::FAST, name); |
787 } | 787 } |
788 | 788 |
789 | 789 |
790 #undef __ | 790 #undef __ |
791 } // namespace internal | 791 } // namespace internal |
792 } // namespace v8 | 792 } // namespace v8 |
793 | 793 |
794 #endif // V8_TARGET_ARCH_IA32 | 794 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |