OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |