OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include "src/bailout-reason.h" | 7 #include "src/bailout-reason.h" |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/field-index.h" | 10 #include "src/field-index.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 Stub* casted_stub() { return static_cast<Stub*>(stub()); } | 244 Stub* casted_stub() { return static_cast<Stub*>(stub()); } |
245 }; | 245 }; |
246 | 246 |
247 | 247 |
248 Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode( | 248 Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode( |
249 ExternalReference miss) { | 249 ExternalReference miss) { |
250 Factory* factory = isolate()->factory(); | 250 Factory* factory = isolate()->factory(); |
251 | 251 |
252 // Generate the new code. | 252 // Generate the new code. |
253 MacroAssembler masm(isolate(), NULL, 256); | 253 MacroAssembler masm(isolate(), NULL, 256, CodeObjectRequired::kYes); |
254 | 254 |
255 { | 255 { |
256 // Update the static counter each time a new code stub is generated. | 256 // Update the static counter each time a new code stub is generated. |
257 isolate()->counters()->code_stubs()->Increment(); | 257 isolate()->counters()->code_stubs()->Increment(); |
258 | 258 |
259 // Generate the code for the stub. | 259 // Generate the code for the stub. |
260 masm.set_generating_stub(true); | 260 masm.set_generating_stub(true); |
261 // TODO(yangguo): remove this once we can serialize IC stubs. | 261 // TODO(yangguo): remove this once we can serialize IC stubs. |
262 masm.enable_serializer(); | 262 masm.enable_serializer(); |
263 NoCurrentFrameScope scope(&masm); | 263 NoCurrentFrameScope scope(&masm); |
(...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2389 return Pop(); | 2389 return Pop(); |
2390 } | 2390 } |
2391 | 2391 |
2392 | 2392 |
2393 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 2393 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
2394 return DoGenerateCode(this); | 2394 return DoGenerateCode(this); |
2395 } | 2395 } |
2396 | 2396 |
2397 } // namespace internal | 2397 } // namespace internal |
2398 } // namespace v8 | 2398 } // namespace v8 |
OLD | NEW |