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

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

Issue 2389133007: [crankshaft] Exclude context parameter from HCallWithDescriptor arguments. (Closed)
Patch Set: Rebasing Created 4 years, 2 months 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
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 7 #include <memory>
8 8
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 // The input is already a primitive. 1024 // The input is already a primitive.
1025 Push(input); 1025 Push(input);
1026 } 1026 }
1027 if_inputisprimitive.Else(); 1027 if_inputisprimitive.Else();
1028 { 1028 {
1029 // Convert the input to a primitive. 1029 // Convert the input to a primitive.
1030 Push(BuildToPrimitive(input, input_map)); 1030 Push(BuildToPrimitive(input, input_map));
1031 } 1031 }
1032 if_inputisprimitive.End(); 1032 if_inputisprimitive.End();
1033 // Convert the primitive to a string value. 1033 // Convert the primitive to a string value.
1034 HValue* values[] = {context(), Pop()}; 1034 HValue* values[] = {Pop()};
1035 Callable toString = CodeFactory::ToString(isolate()); 1035 Callable toString = CodeFactory::ToString(isolate());
1036 Push(AddUncasted<HCallWithDescriptor>(Add<HConstant>(toString.code()), 0, 1036 Push(AddUncasted<HCallWithDescriptor>(Add<HConstant>(toString.code()), 0,
1037 toString.descriptor(), 1037 toString.descriptor(),
1038 ArrayVector(values))); 1038 ArrayVector(values)));
1039 } 1039 }
1040 if_inputisstring.End(); 1040 if_inputisstring.End();
1041 } 1041 }
1042 if_inputissmi.End(); 1042 if_inputissmi.End();
1043 return Pop(); 1043 return Pop();
1044 } 1044 }
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 return Pop(); 1447 return Pop();
1448 } 1448 }
1449 1449
1450 1450
1451 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 1451 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
1452 return DoGenerateCode(this); 1452 return DoGenerateCode(this);
1453 } 1453 }
1454 1454
1455 } // namespace internal 1455 } // namespace internal
1456 } // namespace v8 1456 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698