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

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

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: call code stub from TF Created 4 years, 11 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
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 12981 matching lines...) Expand 10 before | Expand all | Expand 10 after
12992 void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) { 12992 void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) {
12993 DCHECK(call->arguments()->length() == 0); 12993 DCHECK(call->arguments()->length() == 0);
12994 HValue* ref = 12994 HValue* ref =
12995 Add<HConstant>(ExternalReference::debug_is_active_address(isolate())); 12995 Add<HConstant>(ExternalReference::debug_is_active_address(isolate()));
12996 HValue* value = 12996 HValue* value =
12997 Add<HLoadNamedField>(ref, nullptr, HObjectAccess::ForExternalUInteger8()); 12997 Add<HLoadNamedField>(ref, nullptr, HObjectAccess::ForExternalUInteger8());
12998 return ast_context()->ReturnValue(value); 12998 return ast_context()->ReturnValue(value);
12999 } 12999 }
13000 13000
13001 13001
13002 void HOptimizedGraphBuilder::GenerateAtomicsLoad(CallRuntime* call) {
13003 DCHECK(call->arguments()->length() == 2);
13004 CHECK_ALIVE(VisitExpressions(call->arguments()));
13005 PushArgumentsFromEnvironment(call->arguments()->length());
13006 HCallStub* result = New<HCallStub>(CodeStub::AtomicsLoad, 2);
Jarin 2016/01/28 08:11:12 I would use HCallWithDescriptor. For example, see
binji 2016/01/28 16:20:01 Done.
13007 return ast_context()->ReturnInstruction(result, call->id());
13008 }
13009
13010
13002 #undef CHECK_BAILOUT 13011 #undef CHECK_BAILOUT
13003 #undef CHECK_ALIVE 13012 #undef CHECK_ALIVE
13004 13013
13005 13014
13006 HEnvironment::HEnvironment(HEnvironment* outer, 13015 HEnvironment::HEnvironment(HEnvironment* outer,
13007 Scope* scope, 13016 Scope* scope,
13008 Handle<JSFunction> closure, 13017 Handle<JSFunction> closure,
13009 Zone* zone) 13018 Zone* zone)
13010 : closure_(closure), 13019 : closure_(closure),
13011 values_(0, zone), 13020 values_(0, zone),
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
13632 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13641 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13633 } 13642 }
13634 13643
13635 #ifdef DEBUG 13644 #ifdef DEBUG
13636 graph_->Verify(false); // No full verify. 13645 graph_->Verify(false); // No full verify.
13637 #endif 13646 #endif
13638 } 13647 }
13639 13648
13640 } // namespace internal 13649 } // namespace internal
13641 } // namespace v8 13650 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698