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

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

Issue 8286023: Revert last revert. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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/parser.cc » ('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 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 } 2097 }
2098 // Record source position for debugger. 2098 // Record source position for debugger.
2099 SetSourcePosition(expr->position()); 2099 SetSourcePosition(expr->position());
2100 2100
2101 // Record call targets in unoptimized code, but not in the snapshot. 2101 // Record call targets in unoptimized code, but not in the snapshot.
2102 bool record_call_target = !Serializer::enabled(); 2102 bool record_call_target = !Serializer::enabled();
2103 if (record_call_target) { 2103 if (record_call_target) {
2104 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET); 2104 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET);
2105 } 2105 }
2106 CallFunctionStub stub(arg_count, flags); 2106 CallFunctionStub stub(arg_count, flags);
2107 __ CallStub(&stub); 2107 __ CallStub(&stub, expr->id());
2108 if (record_call_target) { 2108 if (record_call_target) {
2109 // There is a one element cache in the instruction stream. 2109 // There is a one element cache in the instruction stream.
2110 #ifdef DEBUG 2110 #ifdef DEBUG
2111 int return_site_offset = masm()->pc_offset(); 2111 int return_site_offset = masm()->pc_offset();
2112 #endif 2112 #endif
2113 Handle<Object> uninitialized = 2113 Handle<Object> uninitialized =
2114 CallFunctionStub::UninitializedSentinel(isolate()); 2114 CallFunctionStub::UninitializedSentinel(isolate());
2115 Handle<JSGlobalPropertyCell> cell = 2115 Handle<JSGlobalPropertyCell> cell =
2116 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); 2116 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
2117 __ test(eax, Immediate(cell)); 2117 __ test(eax, Immediate(cell));
(...skipping 2225 matching lines...) Expand 10 before | Expand all | Expand 10 after
4343 *context_length = 0; 4343 *context_length = 0;
4344 return previous_; 4344 return previous_;
4345 } 4345 }
4346 4346
4347 4347
4348 #undef __ 4348 #undef __
4349 4349
4350 } } // namespace v8::internal 4350 } } // namespace v8::internal
4351 4351
4352 #endif // V8_TARGET_ARCH_IA32 4352 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698