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

Side by Side Diff: src/code-stubs.cc

Issue 2446543002: [turbofan] Support variable size argument popping in TF-generated functions (Closed)
Patch Set: Fix x64 Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2882 matching lines...) Expand 10 before | Expand all | Expand 10 after
2893 assembler->Comment("fast double elements path"); 2893 assembler->Comment("fast double elements path");
2894 if (FLAG_debug_code) { 2894 if (FLAG_debug_code) {
2895 Label correct_elements_map(assembler), abort(assembler, Label::kDeferred); 2895 Label correct_elements_map(assembler), abort(assembler, Label::kDeferred);
2896 assembler->Branch(assembler->IsFixedDoubleArrayMap(elements_map), 2896 assembler->Branch(assembler->IsFixedDoubleArrayMap(elements_map),
2897 &correct_elements_map, &abort); 2897 &correct_elements_map, &abort);
2898 2898
2899 assembler->Bind(&abort); 2899 assembler->Bind(&abort);
2900 { 2900 {
2901 Node* abort_id = assembler->SmiConstant( 2901 Node* abort_id = assembler->SmiConstant(
2902 Smi::FromInt(BailoutReason::kExpectedFixedDoubleArrayMap)); 2902 Smi::FromInt(BailoutReason::kExpectedFixedDoubleArrayMap));
2903 assembler->TailCallRuntime(Runtime::kAbort, context, abort_id); 2903 assembler->CallRuntime(Runtime::kAbort, context, abort_id);
2904 result.Bind(assembler->UndefinedConstant());
danno 2016/10/25 06:43:32 It's not a good idea to tail call with a different
2905 assembler->Goto(&return_result);
2904 } 2906 }
2905 assembler->Bind(&correct_elements_map); 2907 assembler->Bind(&correct_elements_map);
2906 } 2908 }
2907 2909
2908 Node* array = NonEmptyShallowClone(assembler, boilerplate, boilerplate_map, 2910 Node* array = NonEmptyShallowClone(assembler, boilerplate, boilerplate_map,
2909 boilerplate_elements, allocation_site, 2911 boilerplate_elements, allocation_site,
2910 capacity, FAST_DOUBLE_ELEMENTS); 2912 capacity, FAST_DOUBLE_ELEMENTS);
2911 result.Bind(array); 2913 result.Bind(array);
2912 assembler->Goto(&return_result); 2914 assembler->Goto(&return_result);
2913 } 2915 }
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
3326 3328
3327 if (type == MachineType::Pointer()) { 3329 if (type == MachineType::Pointer()) {
3328 return Representation::External(); 3330 return Representation::External();
3329 } 3331 }
3330 3332
3331 return Representation::Tagged(); 3333 return Representation::Tagged();
3332 } 3334 }
3333 3335
3334 } // namespace internal 3336 } // namespace internal
3335 } // namespace v8 3337 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/code-generator-arm.cc » ('j') | src/compiler/instruction-selector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698