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

Side by Side Diff: src/objects.h

Issue 1162503002: Implement Atomics API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix warnings Created 5 years, 6 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 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 6883 matching lines...) Expand 10 before | Expand all | Expand 10 after
6894 V(Math, sin, MathSin) \ 6894 V(Math, sin, MathSin) \
6895 V(Math, tan, MathTan) \ 6895 V(Math, tan, MathTan) \
6896 V(Math, acos, MathAcos) \ 6896 V(Math, acos, MathAcos) \
6897 V(Math, asin, MathAsin) \ 6897 V(Math, asin, MathAsin) \
6898 V(Math, atan, MathAtan) \ 6898 V(Math, atan, MathAtan) \
6899 V(Math, atan2, MathAtan2) \ 6899 V(Math, atan2, MathAtan2) \
6900 V(Math, imul, MathImul) \ 6900 V(Math, imul, MathImul) \
6901 V(Math, clz32, MathClz32) \ 6901 V(Math, clz32, MathClz32) \
6902 V(Math, fround, MathFround) 6902 V(Math, fround, MathFround)
6903 6903
6904 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \
6905 V(Atomics, load, AtomicsLoad) \
6906 V(Atomics, store, AtomicsStore)
6907
6904 enum BuiltinFunctionId { 6908 enum BuiltinFunctionId {
6905 kArrayCode, 6909 kArrayCode,
6906 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 6910 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
6907 k##name, 6911 k##name,
6908 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6912 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6913 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
Jarin 2015/06/01 17:50:10 Funny indentation.
binji 2015/06/02 21:32:55 Agreed. This is what git cl format does, I think b
Jarin 2015/06/03 13:30:14 I think this is because git cl format only format
6909 #undef DECLARE_FUNCTION_ID 6914 #undef DECLARE_FUNCTION_ID
6910 // Fake id for a special case of Math.pow. Note, it continues the 6915 // Fake id for a special case of Math.pow. Note, it continues the
6911 // list of math functions. 6916 // list of math functions.
6912 kMathPowHalf 6917 kMathPowHalf
6913 }; 6918 };
6914 6919
6915 6920
6916 // SharedFunctionInfo describes the JSFunction information that can be 6921 // SharedFunctionInfo describes the JSFunction information that can be
6917 // shared by multiple instances of the function. 6922 // shared by multiple instances of the function.
6918 class SharedFunctionInfo: public HeapObject { 6923 class SharedFunctionInfo: public HeapObject {
(...skipping 4258 matching lines...) Expand 10 before | Expand all | Expand 10 after
11177 } else { 11182 } else {
11178 value &= ~(1 << bit_position); 11183 value &= ~(1 << bit_position);
11179 } 11184 }
11180 return value; 11185 return value;
11181 } 11186 }
11182 }; 11187 };
11183 11188
11184 } } // namespace v8::internal 11189 } } // namespace v8::internal
11185 11190
11186 #endif // V8_OBJECTS_H_ 11191 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime.h » ('j') | src/runtime/runtime-atomics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698