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

Side by Side Diff: src/objects.h

Issue 4135004: Separate JSON parsing from the JavaScript parser. (Closed)
Patch Set: Rename GetSymbol. Move ZoneScope. Created 10 years, 1 month 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/json.js ('k') | src/parser.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after
3355 // Script types. 3355 // Script types.
3356 enum Type { 3356 enum Type {
3357 TYPE_NATIVE = 0, 3357 TYPE_NATIVE = 0,
3358 TYPE_EXTENSION = 1, 3358 TYPE_EXTENSION = 1,
3359 TYPE_NORMAL = 2 3359 TYPE_NORMAL = 2
3360 }; 3360 };
3361 3361
3362 // Script compilation types. 3362 // Script compilation types.
3363 enum CompilationType { 3363 enum CompilationType {
3364 COMPILATION_TYPE_HOST = 0, 3364 COMPILATION_TYPE_HOST = 0,
3365 COMPILATION_TYPE_EVAL = 1, 3365 COMPILATION_TYPE_EVAL = 1
3366 COMPILATION_TYPE_JSON = 2
3367 }; 3366 };
3368 3367
3369 // [source]: the script source. 3368 // [source]: the script source.
3370 DECL_ACCESSORS(source, Object) 3369 DECL_ACCESSORS(source, Object)
3371 3370
3372 // [name]: the script name. 3371 // [name]: the script name.
3373 DECL_ACCESSORS(name, Object) 3372 DECL_ACCESSORS(name, Object)
3374 3373
3375 // [id]: the script id. 3374 // [id]: the script id.
3376 DECL_ACCESSORS(id, Object) 3375 DECL_ACCESSORS(id, Object)
(...skipping 2337 matching lines...) Expand 10 before | Expand all | Expand 10 after
5714 } else { 5713 } else {
5715 value &= ~(1 << bit_position); 5714 value &= ~(1 << bit_position);
5716 } 5715 }
5717 return value; 5716 return value;
5718 } 5717 }
5719 }; 5718 };
5720 5719
5721 } } // namespace v8::internal 5720 } } // namespace v8::internal
5722 5721
5723 #endif // V8_OBJECTS_H_ 5722 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/json.js ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698