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

Side by Side Diff: src/factory.cc

Issue 7039037: Create stand-alone json parser (including scanner). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 7 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/factory.h ('k') | src/heap.h » ('j') | src/json-parser.h » ('J')
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 106
107 // Symbols are created in the old generation (data space). 107 // Symbols are created in the old generation (data space).
108 Handle<String> Factory::LookupSymbol(Vector<const char> string) { 108 Handle<String> Factory::LookupSymbol(Vector<const char> string) {
109 CALL_HEAP_FUNCTION(isolate(), 109 CALL_HEAP_FUNCTION(isolate(),
110 isolate()->heap()->LookupSymbol(string), 110 isolate()->heap()->LookupSymbol(string),
111 String); 111 String);
112 } 112 }
113 113
114
114 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) { 115 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) {
115 CALL_HEAP_FUNCTION(isolate(), 116 CALL_HEAP_FUNCTION(isolate(),
116 isolate()->heap()->LookupAsciiSymbol(string), 117 isolate()->heap()->LookupAsciiSymbol(string),
117 String); 118 String);
118 } 119 }
119 120
121
122 Handle<String> Factory::LookupAsciiSymbol(Handle<SeqAsciiString> string,
123 int from,
124 int length) {
125 CALL_HEAP_FUNCTION(isolate(),
126 isolate()->heap()->LookupAsciiSymbol(string,
127 from,
128 length),
129 String);
130 }
131
132
120 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) { 133 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) {
121 CALL_HEAP_FUNCTION(isolate(), 134 CALL_HEAP_FUNCTION(isolate(),
122 isolate()->heap()->LookupTwoByteSymbol(string), 135 isolate()->heap()->LookupTwoByteSymbol(string),
123 String); 136 String);
124 } 137 }
125 138
126 139
127 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, 140 Handle<String> Factory::NewStringFromAscii(Vector<const char> string,
128 PretenureFlag pretenure) { 141 PretenureFlag pretenure) {
129 CALL_HEAP_FUNCTION( 142 CALL_HEAP_FUNCTION(
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 Execution::ConfigureInstance(instance, 1207 Execution::ConfigureInstance(instance,
1195 instance_template, 1208 instance_template,
1196 pending_exception); 1209 pending_exception);
1197 } else { 1210 } else {
1198 *pending_exception = false; 1211 *pending_exception = false;
1199 } 1212 }
1200 } 1213 }
1201 1214
1202 1215
1203 } } // namespace v8::internal 1216 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | src/json-parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698