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

Side by Side Diff: src/contexts.h

Issue 2222893002: Move family of MakeError functions to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix in prologue.js Created 4 years, 4 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_CONTEXTS_H_ 5 #ifndef V8_CONTEXTS_H_
6 #define V8_CONTEXTS_H_ 6 #define V8_CONTEXTS_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 19 matching lines...) Expand all
30 // Contexts are implemented as FixedArray objects; the Context 30 // Contexts are implemented as FixedArray objects; the Context
31 // class is a convenience interface casted on a FixedArray object. 31 // class is a convenience interface casted on a FixedArray object.
32 // 32 //
33 // Note: Context must have no virtual functions and Context objects 33 // Note: Context must have no virtual functions and Context objects
34 // must always be allocated via Heap::AllocateContext() or 34 // must always be allocated via Heap::AllocateContext() or
35 // Factory::NewContext. 35 // Factory::NewContext.
36 36
37 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ 37 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \
38 V(IS_ARRAYLIKE, JSFunction, is_arraylike) \ 38 V(IS_ARRAYLIKE, JSFunction, is_arraylike) \
39 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \ 39 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \
40 V(MAKE_ERROR_INDEX, JSFunction, make_error) \
40 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \ 41 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \
42 V(MAKE_SYNTAX_ERROR_INDEX, JSFunction, make_syntax_error) \
41 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \ 43 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \
44 V(MAKE_URI_ERROR_INDEX, JSFunction, make_uri_error) \
42 V(OBJECT_DEFINE_PROPERTIES, JSFunction, object_define_properties) \ 45 V(OBJECT_DEFINE_PROPERTIES, JSFunction, object_define_properties) \
43 V(OBJECT_DEFINE_PROPERTY, JSFunction, object_define_property) \ 46 V(OBJECT_DEFINE_PROPERTY, JSFunction, object_define_property) \
44 V(OBJECT_FREEZE, JSFunction, object_freeze) \ 47 V(OBJECT_FREEZE, JSFunction, object_freeze) \
45 V(OBJECT_GET_PROTOTYPE_OF, JSFunction, object_get_prototype_of) \ 48 V(OBJECT_GET_PROTOTYPE_OF, JSFunction, object_get_prototype_of) \
46 V(OBJECT_IS_EXTENSIBLE, JSFunction, object_is_extensible) \ 49 V(OBJECT_IS_EXTENSIBLE, JSFunction, object_is_extensible) \
47 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \ 50 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \
48 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \ 51 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \
49 V(OBJECT_KEYS, JSFunction, object_keys) \ 52 V(OBJECT_KEYS, JSFunction, object_keys) \
50 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ 53 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \
51 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ 54 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 #endif 534 #endif
532 535
533 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 536 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
534 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 537 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
535 }; 538 };
536 539
537 } // namespace internal 540 } // namespace internal
538 } // namespace v8 541 } // namespace v8
539 542
540 #endif // V8_CONTEXTS_H_ 543 #endif // V8_CONTEXTS_H_
OLDNEW
« src/bootstrapper.cc ('K') | « src/builtins/builtins-error.cc ('k') | src/debug/debug.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698