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

Side by Side Diff: src/codegen.cc

Issue 11759008: Introduce ENABLE_LATIN_1 compile flag (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix FilterASCII Created 7 years, 11 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/bootstrapper.cc ('k') | src/compiler.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 168
169 bool CodeGenerator::ShouldGenerateLog(Expression* type) { 169 bool CodeGenerator::ShouldGenerateLog(Expression* type) {
170 ASSERT(type != NULL); 170 ASSERT(type != NULL);
171 Isolate* isolate = Isolate::Current(); 171 Isolate* isolate = Isolate::Current();
172 if (!isolate->logger()->is_logging() && !CpuProfiler::is_profiling(isolate)) { 172 if (!isolate->logger()->is_logging() && !CpuProfiler::is_profiling(isolate)) {
173 return false; 173 return false;
174 } 174 }
175 Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle()); 175 Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle());
176 if (FLAG_log_regexp) { 176 if (FLAG_log_regexp) {
177 if (name->IsEqualTo(CStrVector("regexp"))) 177 if (name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("regexp")))
178 return true; 178 return true;
179 } 179 }
180 return false; 180 return false;
181 } 181 }
182 182
183 183
184 bool CodeGenerator::RecordPositions(MacroAssembler* masm, 184 bool CodeGenerator::RecordPositions(MacroAssembler* masm,
185 int pos, 185 int pos,
186 bool right_here) { 186 bool right_here) {
187 if (pos != RelocInfo::kNoPosition) { 187 if (pos != RelocInfo::kNoPosition) {
(...skipping 30 matching lines...) Expand all
218 ASSERT(result_size_ == 1 || result_size_ == 2); 218 ASSERT(result_size_ == 1 || result_size_ == 2);
219 #ifdef _WIN64 219 #ifdef _WIN64
220 return result | ((result_size_ == 1) ? 0 : 2); 220 return result | ((result_size_ == 1) ? 0 : 2);
221 #else 221 #else
222 return result; 222 return result;
223 #endif 223 #endif
224 } 224 }
225 225
226 226
227 } } // namespace v8::internal 227 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698