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

Side by Side Diff: src/factory.cc

Issue 6075005: Change scanner buffers to not use utf-8. (Closed)
Patch Set: Fixed linto. Created 10 years 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/factory.h ('k') | src/globals.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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 pretenure), 92 pretenure),
93 DeoptimizationOutputData); 93 DeoptimizationOutputData);
94 } 94 }
95 95
96 96
97 // Symbols are created in the old generation (data space). 97 // Symbols are created in the old generation (data space).
98 Handle<String> Factory::LookupSymbol(Vector<const char> string) { 98 Handle<String> Factory::LookupSymbol(Vector<const char> string) {
99 CALL_HEAP_FUNCTION(Heap::LookupSymbol(string), String); 99 CALL_HEAP_FUNCTION(Heap::LookupSymbol(string), String);
100 } 100 }
101 101
102 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) {
103 CALL_HEAP_FUNCTION(Heap::LookupAsciiSymbol(string), String);
104 }
105
106 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) {
107 CALL_HEAP_FUNCTION(Heap::LookupTwoByteSymbol(string), String);
108 }
109
102 110
103 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, 111 Handle<String> Factory::NewStringFromAscii(Vector<const char> string,
104 PretenureFlag pretenure) { 112 PretenureFlag pretenure) {
105 CALL_HEAP_FUNCTION(Heap::AllocateStringFromAscii(string, pretenure), String); 113 CALL_HEAP_FUNCTION(Heap::AllocateStringFromAscii(string, pretenure), String);
106 } 114 }
107 115
108 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, 116 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string,
109 PretenureFlag pretenure) { 117 PretenureFlag pretenure) {
110 CALL_HEAP_FUNCTION(Heap::AllocateStringFromUtf8(string, pretenure), String); 118 CALL_HEAP_FUNCTION(Heap::AllocateStringFromUtf8(string, pretenure), String);
111 } 119 }
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 Execution::ConfigureInstance(instance, 1053 Execution::ConfigureInstance(instance,
1046 instance_template, 1054 instance_template,
1047 pending_exception); 1055 pending_exception);
1048 } else { 1056 } else {
1049 *pending_exception = false; 1057 *pending_exception = false;
1050 } 1058 }
1051 } 1059 }
1052 1060
1053 1061
1054 } } // namespace v8::internal 1062 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698