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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 2143983002: Fix context for fast accessors (lazy). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « src/code-stubs.h ('k') | src/fast-accessor-assembler.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 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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/fast-accessor-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698