| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 Handle<Code> result = MakeCodeEpilogue(cgen.masm(), flags, info); | 228 Handle<Code> result = MakeCodeEpilogue(cgen.masm(), flags, info); |
| 229 live_edit_tracker.RecordFunctionCode(result); | 229 live_edit_tracker.RecordFunctionCode(result); |
| 230 return result; | 230 return result; |
| 231 } | 231 } |
| 232 | 232 |
| 233 | 233 |
| 234 #ifdef ENABLE_LOGGING_AND_PROFILING | 234 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 235 | 235 |
| 236 bool CodeGenerator::ShouldGenerateLog(Expression* type) { | 236 bool CodeGenerator::ShouldGenerateLog(Expression* type) { |
| 237 ASSERT(type != NULL); | 237 ASSERT(type != NULL); |
| 238 if (!Logger::is_logging()) return false; | 238 if (!Logger::is_logging() && !CpuProfiler::is_profiling()) return false; |
| 239 Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle()); | 239 Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle()); |
| 240 if (FLAG_log_regexp) { | 240 if (FLAG_log_regexp) { |
| 241 static Vector<const char> kRegexp = CStrVector("regexp"); | 241 static Vector<const char> kRegexp = CStrVector("regexp"); |
| 242 if (name->IsEqualTo(kRegexp)) | 242 if (name->IsEqualTo(kRegexp)) |
| 243 return true; | 243 return true; |
| 244 } | 244 } |
| 245 return false; | 245 return false; |
| 246 } | 246 } |
| 247 | 247 |
| 248 #endif | 248 #endif |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 } | 481 } |
| 482 } | 482 } |
| 483 | 483 |
| 484 | 484 |
| 485 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 485 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
| 486 info()->set_load_stub_cache(value); | 486 info()->set_load_stub_cache(value); |
| 487 } | 487 } |
| 488 | 488 |
| 489 | 489 |
| 490 } } // namespace v8::internal | 490 } } // namespace v8::internal |
| OLD | NEW |