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

Side by Side Diff: src/builtins/builtins-conversion.cc

Issue 2407813002: [stubs] Port StringAddStub to TF (Closed)
Patch Set: Remove stray change 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/code-stub-assembler.h » ('j') | src/code-stub-assembler.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/builtins/builtins.h" 5 #include "src/builtins/builtins.h"
6 #include "src/builtins/builtins-utils.h" 6 #include "src/builtins/builtins-utils.h"
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 assembler->Bind(&not_string); 177 assembler->Bind(&not_string);
178 { 178 {
179 assembler->GotoUnless( 179 assembler->GotoUnless(
180 assembler->WordEqual(input_map, assembler->HeapNumberMapConstant()), 180 assembler->WordEqual(input_map, assembler->HeapNumberMapConstant()),
181 &not_heap_number); 181 &not_heap_number);
182 assembler->Goto(&is_number); 182 assembler->Goto(&is_number);
183 } 183 }
184 184
185 assembler->Bind(&is_number); 185 assembler->Bind(&is_number);
186 { 186 { assembler->Return(assembler->ToString(context, input)); }
jgruber 2016/10/13 14:10:16 Shouldn't this be NumberToString instead of ToStri
Igor Sheludko 2016/10/13 15:41:33 I guess you intended to call assembler->NumberToSt
danno 2016/10/17 14:23:26 Done.
danno 2016/10/17 14:23:26 Yes! Good catch.
187 // TODO(tebbi): inline as soon as NumberToString is in the CodeStubAssembler
188 Callable callable = CodeFactory::NumberToString(assembler->isolate());
189 assembler->Return(assembler->CallStub(callable, context, input));
190 }
191 187
192 assembler->Bind(&not_heap_number); 188 assembler->Bind(&not_heap_number);
193 { 189 {
194 assembler->GotoIf( 190 assembler->GotoIf(
195 assembler->Word32NotEqual(input_instance_type, 191 assembler->Word32NotEqual(input_instance_type,
196 assembler->Int32Constant(ODDBALL_TYPE)), 192 assembler->Int32Constant(ODDBALL_TYPE)),
197 &runtime); 193 &runtime);
198 assembler->Return( 194 assembler->Return(
199 assembler->LoadObjectField(input, Oddball::kToStringOffset)); 195 assembler->LoadObjectField(input, Oddball::kToStringOffset));
200 } 196 }
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 typedef TypeofDescriptor Descriptor; 473 typedef TypeofDescriptor Descriptor;
478 474
479 Node* object = assembler->Parameter(Descriptor::kObject); 475 Node* object = assembler->Parameter(Descriptor::kObject);
480 Node* context = assembler->Parameter(Descriptor::kContext); 476 Node* context = assembler->Parameter(Descriptor::kContext);
481 477
482 assembler->Return(assembler->Typeof(object, context)); 478 assembler->Return(assembler->Typeof(object, context));
483 } 479 }
484 480
485 } // namespace internal 481 } // namespace internal
486 } // namespace v8 482 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.h » ('j') | src/code-stub-assembler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698