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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 8360001: Fix bug in environment simulation after inlined call-as-function. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Added r9619. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/type-info.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2148 } 2148 }
2149 // Record source position for debugger. 2149 // Record source position for debugger.
2150 SetSourcePosition(expr->position()); 2150 SetSourcePosition(expr->position());
2151 2151
2152 // Record call targets in unoptimized code, but not in the snapshot. 2152 // Record call targets in unoptimized code, but not in the snapshot.
2153 bool record_call_target = !Serializer::enabled(); 2153 bool record_call_target = !Serializer::enabled();
2154 if (record_call_target) { 2154 if (record_call_target) {
2155 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET); 2155 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET);
2156 } 2156 }
2157 CallFunctionStub stub(arg_count, flags); 2157 CallFunctionStub stub(arg_count, flags);
2158 __ CallStub(&stub); 2158 __ CallStub(&stub, expr->id());
2159 if (record_call_target) { 2159 if (record_call_target) {
2160 // There is a one element cache in the instruction stream. 2160 // There is a one element cache in the instruction stream.
2161 #ifdef DEBUG 2161 #ifdef DEBUG
2162 int return_site_offset = masm()->pc_offset(); 2162 int return_site_offset = masm()->pc_offset();
2163 #endif 2163 #endif
2164 Handle<Object> uninitialized = 2164 Handle<Object> uninitialized =
2165 CallFunctionStub::UninitializedSentinel(isolate()); 2165 CallFunctionStub::UninitializedSentinel(isolate());
2166 Handle<JSGlobalPropertyCell> cell = 2166 Handle<JSGlobalPropertyCell> cell =
2167 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); 2167 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
2168 __ test(eax, Immediate(cell)); 2168 __ test(eax, Immediate(cell));
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
4387 *context_length = 0; 4387 *context_length = 0;
4388 return previous_; 4388 return previous_;
4389 } 4389 }
4390 4390
4391 4391
4392 #undef __ 4392 #undef __
4393 4393
4394 } } // namespace v8::internal 4394 } } // namespace v8::internal
4395 4395
4396 #endif // V8_TARGET_ARCH_IA32 4396 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698