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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 DCHECK(translation_size == 1); | 584 DCHECK(translation_size == 1); |
585 DCHECK(height == 0); | 585 DCHECK(height == 0); |
586 translation->BeginGetterStubFrame(closure_id); | 586 translation->BeginGetterStubFrame(closure_id); |
587 break; | 587 break; |
588 case JS_SETTER: | 588 case JS_SETTER: |
589 DCHECK(translation_size == 2); | 589 DCHECK(translation_size == 2); |
590 DCHECK(height == 0); | 590 DCHECK(height == 0); |
591 translation->BeginSetterStubFrame(closure_id); | 591 translation->BeginSetterStubFrame(closure_id); |
592 break; | 592 break; |
593 case STUB: | 593 case STUB: |
594 translation->BeginCompiledStubFrame(translation_size); | 594 translation->BeginCompiledStubFrame(); |
595 break; | 595 break; |
596 case ARGUMENTS_ADAPTOR: | 596 case ARGUMENTS_ADAPTOR: |
597 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); | 597 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); |
598 break; | 598 break; |
599 } | 599 } |
600 | 600 |
601 int object_index = 0; | 601 int object_index = 0; |
602 int dematerialized_index = 0; | 602 int dematerialized_index = 0; |
603 for (int i = 0; i < translation_size; ++i) { | 603 for (int i = 0; i < translation_size; ++i) { |
604 LOperand* value = environment->values()->at(i); | 604 LOperand* value = environment->values()->at(i); |
(...skipping 5670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6275 __ Push(scope_info); | 6275 __ Push(scope_info); |
6276 __ push(ToRegister(instr->function())); | 6276 __ push(ToRegister(instr->function())); |
6277 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6277 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6278 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6278 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6279 } | 6279 } |
6280 | 6280 |
6281 | 6281 |
6282 #undef __ | 6282 #undef __ |
6283 } // namespace internal | 6283 } // namespace internal |
6284 } // namespace v8 | 6284 } // namespace v8 |
OLD | NEW |