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

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: add more symbols to anonymous namespace 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
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime.h » ('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 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 6544 matching lines...) Expand 10 before | Expand all | Expand 10 after
6555 V(Math, sin, MathSin) \ 6555 V(Math, sin, MathSin) \
6556 V(Math, tan, MathTan) \ 6556 V(Math, tan, MathTan) \
6557 V(Math, acos, MathAcos) \ 6557 V(Math, acos, MathAcos) \
6558 V(Math, asin, MathAsin) \ 6558 V(Math, asin, MathAsin) \
6559 V(Math, atan, MathAtan) \ 6559 V(Math, atan, MathAtan) \
6560 V(Math, atan2, MathAtan2) \ 6560 V(Math, atan2, MathAtan2) \
6561 V(Math, imul, MathImul) \ 6561 V(Math, imul, MathImul) \
6562 V(Math, clz32, MathClz32) \ 6562 V(Math, clz32, MathClz32) \
6563 V(Math, fround, MathFround) 6563 V(Math, fround, MathFround)
6564 6564
6565 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \
6566 V(Atomics, load, AtomicsLoad) \
6567 V(Atomics, store, AtomicsStore)
6568
6565 enum BuiltinFunctionId { 6569 enum BuiltinFunctionId {
6566 kArrayCode, 6570 kArrayCode,
6567 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 6571 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
6568 k##name, 6572 k##name,
6569 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6573 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6574 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6570 #undef DECLARE_FUNCTION_ID 6575 #undef DECLARE_FUNCTION_ID
6571 // Fake id for a special case of Math.pow. Note, it continues the 6576 // Fake id for a special case of Math.pow. Note, it continues the
6572 // list of math functions. 6577 // list of math functions.
6573 kMathPowHalf 6578 kMathPowHalf
6574 }; 6579 };
6575 6580
6576 6581
6577 // SharedFunctionInfo describes the JSFunction information that can be 6582 // SharedFunctionInfo describes the JSFunction information that can be
6578 // shared by multiple instances of the function. 6583 // shared by multiple instances of the function.
6579 class SharedFunctionInfo: public HeapObject { 6584 class SharedFunctionInfo: public HeapObject {
(...skipping 4258 matching lines...) Expand 10 before | Expand all | Expand 10 after
10838 } else { 10843 } else {
10839 value &= ~(1 << bit_position); 10844 value &= ~(1 << bit_position);
10840 } 10845 }
10841 return value; 10846 return value;
10842 } 10847 }
10843 }; 10848 };
10844 10849
10845 } } // namespace v8::internal 10850 } } // namespace v8::internal
10846 10851
10847 #endif // V8_OBJECTS_H_ 10852 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698