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

Side by Side Diff: src/contexts.h

Issue 93066: Built-in JSON support (Closed)
Patch Set: Created 11 years, 8 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 #define GLOBAL_CONTEXT_FIELDS(V) \ 58 #define GLOBAL_CONTEXT_FIELDS(V) \
59 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ 59 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \
60 V(SECURITY_TOKEN_INDEX, Object, security_token) \ 60 V(SECURITY_TOKEN_INDEX, Object, security_token) \
61 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ 61 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
62 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ 62 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \
63 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ 63 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \
64 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ 64 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \
65 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ 65 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
66 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ 66 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \
67 V(JSON_OBJECT_INDEX, JSObject, json_object) \
67 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 68 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
68 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ 69 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \
69 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ 70 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \
70 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ 71 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \
71 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ 72 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \
72 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ 73 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \
73 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ 74 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \
74 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ 75 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \
75 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ 76 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \
76 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ 77 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 JS_ARRAY_MAP_INDEX, 180 JS_ARRAY_MAP_INDEX,
180 FUNCTION_MAP_INDEX, 181 FUNCTION_MAP_INDEX,
181 FUNCTION_INSTANCE_MAP_INDEX, 182 FUNCTION_INSTANCE_MAP_INDEX,
182 INITIAL_OBJECT_PROTOTYPE_INDEX, 183 INITIAL_OBJECT_PROTOTYPE_INDEX,
183 BOOLEAN_FUNCTION_INDEX, 184 BOOLEAN_FUNCTION_INDEX,
184 NUMBER_FUNCTION_INDEX, 185 NUMBER_FUNCTION_INDEX,
185 STRING_FUNCTION_INDEX, 186 STRING_FUNCTION_INDEX,
186 OBJECT_FUNCTION_INDEX, 187 OBJECT_FUNCTION_INDEX,
187 ARRAY_FUNCTION_INDEX, 188 ARRAY_FUNCTION_INDEX,
188 DATE_FUNCTION_INDEX, 189 DATE_FUNCTION_INDEX,
190 JSON_OBJECT_INDEX,
189 REGEXP_FUNCTION_INDEX, 191 REGEXP_FUNCTION_INDEX,
190 CREATE_DATE_FUN_INDEX, 192 CREATE_DATE_FUN_INDEX,
191 TO_NUMBER_FUN_INDEX, 193 TO_NUMBER_FUN_INDEX,
192 TO_STRING_FUN_INDEX, 194 TO_STRING_FUN_INDEX,
193 TO_DETAIL_STRING_FUN_INDEX, 195 TO_DETAIL_STRING_FUN_INDEX,
194 TO_OBJECT_FUN_INDEX, 196 TO_OBJECT_FUN_INDEX,
195 TO_INTEGER_FUN_INDEX, 197 TO_INTEGER_FUN_INDEX,
196 TO_UINT32_FUN_INDEX, 198 TO_UINT32_FUN_INDEX,
197 TO_INT32_FUN_INDEX, 199 TO_INT32_FUN_INDEX,
198 TO_BOOLEAN_FUN_INDEX, 200 TO_BOOLEAN_FUN_INDEX,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 #ifdef DEBUG 328 #ifdef DEBUG
327 // Bootstrapping-aware type checks. 329 // Bootstrapping-aware type checks.
328 static bool IsBootstrappingOrContext(Object* object); 330 static bool IsBootstrappingOrContext(Object* object);
329 static bool IsBootstrappingOrGlobalObject(Object* object); 331 static bool IsBootstrappingOrGlobalObject(Object* object);
330 #endif 332 #endif
331 }; 333 };
332 334
333 } } // namespace v8::internal 335 } } // namespace v8::internal
334 336
335 #endif // V8_CONTEXTS_H_ 337 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698