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

Side by Side Diff: src/codegen.cc

Issue 12475016: Maintain API compatibility with older versions of V8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/api.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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 code->Disassemble(*function->debug_name()->ToCString()); 164 code->Disassemble(*function->debug_name()->ToCString());
165 } 165 }
166 } 166 }
167 #endif // ENABLE_DISASSEMBLER 167 #endif // ENABLE_DISASSEMBLER
168 } 168 }
169 169
170 170
171 bool CodeGenerator::ShouldGenerateLog(Expression* type) { 171 bool CodeGenerator::ShouldGenerateLog(Expression* type) {
172 ASSERT(type != NULL); 172 ASSERT(type != NULL);
173 Isolate* isolate = Isolate::Current(); 173 Isolate* isolate = Isolate::Current();
174 if (!isolate->logger()->is_logging() && 174 if (!isolate->logger()->is_logging() && !CpuProfiler::is_profiling(isolate)) {
175 !isolate->cpu_profiler()->is_profiling()) {
176 return false; 175 return false;
177 } 176 }
178 Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle()); 177 Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle());
179 if (FLAG_log_regexp) { 178 if (FLAG_log_regexp) {
180 if (name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("regexp"))) 179 if (name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("regexp")))
181 return true; 180 return true;
182 } 181 }
183 return false; 182 return false;
184 } 183 }
185 184
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 ASSERT(result_size_ == 1 || result_size_ == 2); 220 ASSERT(result_size_ == 1 || result_size_ == 2);
222 #ifdef _WIN64 221 #ifdef _WIN64
223 return result | ((result_size_ == 1) ? 0 : 2); 222 return result | ((result_size_ == 1) ? 0 : 2);
224 #else 223 #else
225 return result; 224 return result;
226 #endif 225 #endif
227 } 226 }
228 227
229 228
230 } } // namespace v8::internal 229 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698