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/json-parser.h

Issue 437993003: Move a bunch of GC related files to heap/ subdirectory (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make presubmit happy Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/isolate.cc ('k') | src/jsregexp-inl.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_JSON_PARSER_H_ 5 #ifndef V8_JSON_PARSER_H_
6 #define V8_JSON_PARSER_H_ 6 #define V8_JSON_PARSER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/char-predicates-inl.h" 10 #include "src/char-predicates-inl.h"
11 #include "src/conversions.h" 11 #include "src/conversions.h"
12 #include "src/heap/spaces-inl.h"
12 #include "src/messages.h" 13 #include "src/messages.h"
13 #include "src/spaces-inl.h"
14 #include "src/token.h" 14 #include "src/token.h"
15 15
16 namespace v8 { 16 namespace v8 {
17 namespace internal { 17 namespace internal {
18 18
19 // A simple json parser. 19 // A simple json parser.
20 template <bool seq_ascii> 20 template <bool seq_ascii>
21 class JsonParser BASE_EMBEDDED { 21 class JsonParser BASE_EMBEDDED {
22 public: 22 public:
23 MUST_USE_RESULT static MaybeHandle<Object> Parse(Handle<String> source) { 23 MUST_USE_RESULT static MaybeHandle<Object> Parse(Handle<String> source) {
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 781
782 DCHECK_EQ('"', c0_); 782 DCHECK_EQ('"', c0_);
783 // Advance past the last '"'. 783 // Advance past the last '"'.
784 AdvanceSkipWhitespace(); 784 AdvanceSkipWhitespace();
785 return result; 785 return result;
786 } 786 }
787 787
788 } } // namespace v8::internal 788 } } // namespace v8::internal
789 789
790 #endif // V8_JSON_PARSER_H_ 790 #endif // V8_JSON_PARSER_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/jsregexp-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698