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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 96853003: Drop IsPregenerated() and allow_stub_calls flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also ditch the fixed register hack that was required for RecordWriteStub. Created 7 years 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/code-stubs.cc ('k') | src/ia32/code-stubs-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode(Isolate* isolate) { 244 Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode(Isolate* isolate) {
245 Factory* factory = isolate->factory(); 245 Factory* factory = isolate->factory();
246 246
247 // Generate the new code. 247 // Generate the new code.
248 MacroAssembler masm(isolate, NULL, 256); 248 MacroAssembler masm(isolate, NULL, 256);
249 249
250 { 250 {
251 // Update the static counter each time a new code stub is generated. 251 // Update the static counter each time a new code stub is generated.
252 isolate->counters()->code_stubs()->Increment(); 252 isolate->counters()->code_stubs()->Increment();
253 253
254 // Nested stubs are not allowed for leaves.
255 AllowStubCallsScope allow_scope(&masm, false);
256
257 // Generate the code for the stub. 254 // Generate the code for the stub.
258 masm.set_generating_stub(true); 255 masm.set_generating_stub(true);
259 NoCurrentFrameScope scope(&masm); 256 NoCurrentFrameScope scope(&masm);
260 GenerateLightweightMiss(&masm); 257 GenerateLightweightMiss(&masm);
261 } 258 }
262 259
263 // Create the code object. 260 // Create the code object.
264 CodeDesc desc; 261 CodeDesc desc;
265 masm.GetCode(&desc); 262 masm.GetCode(&desc);
266 263
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 return BuildUncheckedDictionaryElementLoad(receiver, key); 1328 return BuildUncheckedDictionaryElementLoad(receiver, key);
1332 } 1329 }
1333 1330
1334 1331
1335 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { 1332 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) {
1336 return DoGenerateCode(isolate, this); 1333 return DoGenerateCode(isolate, this);
1337 } 1334 }
1338 1335
1339 1336
1340 } } // namespace v8::internal 1337 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/code-stubs-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698