OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/crankshaft/hydrogen.h" | 5 #include "src/crankshaft/hydrogen.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
10 #include "src/ast/ast-numbering.h" | 10 #include "src/ast/ast-numbering.h" |
(...skipping 9341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9352 if (!is_function) { | 9352 if (!is_function) { |
9353 CallApiCallbackStub stub(isolate(), is_store, call_data_undefined, | 9353 CallApiCallbackStub stub(isolate(), is_store, call_data_undefined, |
9354 !optimization.is_constant_call()); | 9354 !optimization.is_constant_call()); |
9355 Handle<Code> code = stub.GetCode(); | 9355 Handle<Code> code = stub.GetCode(); |
9356 HConstant* code_value = Add<HConstant>(code); | 9356 HConstant* code_value = Add<HConstant>(code); |
9357 call = New<HCallWithDescriptor>( | 9357 call = New<HCallWithDescriptor>( |
9358 code_value, argc + 1, stub.GetCallInterfaceDescriptor(), | 9358 code_value, argc + 1, stub.GetCallInterfaceDescriptor(), |
9359 Vector<HValue*>(op_vals, arraysize(op_vals) - 1), | 9359 Vector<HValue*>(op_vals, arraysize(op_vals) - 1), |
9360 syntactic_tail_call_mode); | 9360 syntactic_tail_call_mode); |
9361 } else { | 9361 } else { |
9362 CallApiCallbackStub stub(isolate(), argc, call_data_undefined); | 9362 CallApiCallbackStub stub(isolate(), argc, call_data_undefined, false); |
9363 Handle<Code> code = stub.GetCode(); | 9363 Handle<Code> code = stub.GetCode(); |
9364 HConstant* code_value = Add<HConstant>(code); | 9364 HConstant* code_value = Add<HConstant>(code); |
9365 call = New<HCallWithDescriptor>( | 9365 call = New<HCallWithDescriptor>( |
9366 code_value, argc + 1, stub.GetCallInterfaceDescriptor(), | 9366 code_value, argc + 1, stub.GetCallInterfaceDescriptor(), |
9367 Vector<HValue*>(op_vals, arraysize(op_vals) - 1), | 9367 Vector<HValue*>(op_vals, arraysize(op_vals) - 1), |
9368 syntactic_tail_call_mode); | 9368 syntactic_tail_call_mode); |
9369 Drop(1); // Drop function. | 9369 Drop(1); // Drop function. |
9370 } | 9370 } |
9371 | 9371 |
9372 ast_context()->ReturnInstruction(call, ast_id); | 9372 ast_context()->ReturnInstruction(call, ast_id); |
(...skipping 4039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13412 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13412 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13413 } | 13413 } |
13414 | 13414 |
13415 #ifdef DEBUG | 13415 #ifdef DEBUG |
13416 graph_->Verify(false); // No full verify. | 13416 graph_->Verify(false); // No full verify. |
13417 #endif | 13417 #endif |
13418 } | 13418 } |
13419 | 13419 |
13420 } // namespace internal | 13420 } // namespace internal |
13421 } // namespace v8 | 13421 } // namespace v8 |
OLD | NEW |