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

Unified Diff: test/cctest/compiler/test-code-assembler.cc

Issue 2913783002: [builtins] Begin removing CodeFactory accessors (Closed)
Patch Set: V8_EXPORT_PRIVATE Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: test/cctest/compiler/test-code-assembler.cc
diff --git a/test/cctest/compiler/test-code-assembler.cc b/test/cctest/compiler/test-code-assembler.cc
index e851f61f8f8c0178d708fc5424ff5a27cf31abca..635d9dcc3a690348510f976dba39564df5f0a7e0 100644
--- a/test/cctest/compiler/test-code-assembler.cc
+++ b/test/cctest/compiler/test-code-assembler.cc
@@ -461,7 +461,7 @@ TEST(GotoIfException) {
Variable exception(&m, MachineRepresentation::kTagged);
Label exception_handler(&m);
- Callable to_string = CodeFactory::ToString(isolate);
+ Callable to_string = Builtins::CallableFor(isolate, Builtins::kToString);
Node* string = m.CallStub(to_string, context, to_string_tag);
m.GotoIfException(string, &exception_handler, &exception);
m.Return(string);
@@ -508,7 +508,7 @@ TEST(GotoIfExceptionMultiple) {
return_value.Bind(m.Int32Constant(0));
// try { return ToString(param1) } catch (e) { ... }
- Callable to_string = CodeFactory::ToString(isolate);
+ Callable to_string = Builtins::CallableFor(isolate, Builtins::kToString);
Node* string = m.CallStub(to_string, context, first_value);
m.GotoIfException(string, &exception_handler1, &error);
m.Return(string);
« no previous file with comments | « src/interpreter/interpreter-intrinsics-generator.cc ('k') | test/unittests/compiler/instruction-selector-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698