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

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

Issue 8391040: Fixing issue 1789. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | 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 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 } 2183 }
2184 // Record source position for debugger. 2184 // Record source position for debugger.
2185 SetSourcePosition(expr->position()); 2185 SetSourcePosition(expr->position());
2186 2186
2187 // Record call targets in unoptimized code, but not in the snapshot. 2187 // Record call targets in unoptimized code, but not in the snapshot.
2188 bool record_call_target = !Serializer::enabled(); 2188 bool record_call_target = !Serializer::enabled();
2189 if (record_call_target) { 2189 if (record_call_target) {
2190 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET); 2190 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET);
2191 } 2191 }
2192 CallFunctionStub stub(arg_count, flags); 2192 CallFunctionStub stub(arg_count, flags);
2193 __ CallStub(&stub, expr->id()); 2193 __ CallStub(&stub);
2194 if (record_call_target) { 2194 if (record_call_target) {
2195 // There is a one element cache in the instruction stream. 2195 // There is a one element cache in the instruction stream.
2196 #ifdef DEBUG 2196 #ifdef DEBUG
2197 int return_site_offset = masm()->pc_offset(); 2197 int return_site_offset = masm()->pc_offset();
2198 #endif 2198 #endif
2199 Handle<Object> uninitialized = 2199 Handle<Object> uninitialized =
2200 CallFunctionStub::UninitializedSentinel(isolate()); 2200 CallFunctionStub::UninitializedSentinel(isolate());
2201 Handle<JSGlobalPropertyCell> cell = 2201 Handle<JSGlobalPropertyCell> cell =
2202 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); 2202 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
2203 __ test(eax, Immediate(cell)); 2203 __ test(eax, Immediate(cell));
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
4422 *context_length = 0; 4422 *context_length = 0;
4423 return previous_; 4423 return previous_;
4424 } 4424 }
4425 4425
4426 4426
4427 #undef __ 4427 #undef __
4428 4428
4429 } } // namespace v8::internal 4429 } } // namespace v8::internal
4430 4430
4431 #endif // V8_TARGET_ARCH_IA32 4431 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698