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

Unified Diff: src/ia32/code-stubs-ia32.cc

Issue 2838143003: [stubs] Drop CallApiCallbackStub::call_data_undefined optimization. (Closed)
Patch Set: Fix handler-compiler for remaining archs. Created 3 years, 8 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
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/code-stubs-ia32.cc
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
index 0afefc391cd39aa90621491f8de943ce57caa0b7..6550d6e016cb587cb9bc22a6ac3c61333ac1ad6b 100644
--- a/src/ia32/code-stubs-ia32.cc
+++ b/src/ia32/code-stubs-ia32.cc
@@ -2780,23 +2780,16 @@ void CallApiCallbackStub::Generate(MacroAssembler* masm) {
// call data
__ push(call_data);
- Register scratch = call_data;
- if (!call_data_undefined()) {
- // return value
- __ push(Immediate(masm->isolate()->factory()->undefined_value()));
- // return value default
- __ push(Immediate(masm->isolate()->factory()->undefined_value()));
- } else {
- // return value
- __ push(scratch);
- // return value default
- __ push(scratch);
- }
+ // return value
+ __ push(Immediate(masm->isolate()->factory()->undefined_value()));
+ // return value default
+ __ push(Immediate(masm->isolate()->factory()->undefined_value()));
// isolate
__ push(Immediate(reinterpret_cast<int>(masm->isolate())));
// holder
__ push(holder);
+ Register scratch = call_data;
__ mov(scratch, esp);
// push return address
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698