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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: src/crankshaft/hydrogen.cc
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
index 974621aa31e88ae7f0e2d3e2a00bb1ba7dcab912..fcd147736f88d090e739392f2234eca4cbeda3cc 100644
--- a/src/crankshaft/hydrogen.cc
+++ b/src/crankshaft/hydrogen.cc
@@ -12999,6 +12999,15 @@ void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) {
}
+void HOptimizedGraphBuilder::GenerateAtomicsLoad(CallRuntime* call) {
+ DCHECK(call->arguments()->length() == 2);
+ CHECK_ALIVE(VisitExpressions(call->arguments()));
+ PushArgumentsFromEnvironment(call->arguments()->length());
+ 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.
+ return ast_context()->ReturnInstruction(result, call->id());
+}
+
+
#undef CHECK_BAILOUT
#undef CHECK_ALIVE

Powered by Google App Engine
This is Rietveld 408576698