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

Side by Side Diff: src/builtins.cc

Issue 1582004: C++ profiles processor: wire up to VM. (Closed)
Patch Set: Created 10 years, 8 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 { 1486 {
1487 // During startup it's OK to always allocate and defer GC to later. 1487 // During startup it's OK to always allocate and defer GC to later.
1488 // This simplifies things because we don't need to retry. 1488 // This simplifies things because we don't need to retry.
1489 AlwaysAllocateScope __scope__; 1489 AlwaysAllocateScope __scope__;
1490 code = Heap::CreateCode(desc, NULL, flags, masm.CodeObject()); 1490 code = Heap::CreateCode(desc, NULL, flags, masm.CodeObject());
1491 if (code->IsFailure()) { 1491 if (code->IsFailure()) {
1492 v8::internal::V8::FatalProcessOutOfMemory("CreateCode"); 1492 v8::internal::V8::FatalProcessOutOfMemory("CreateCode");
1493 } 1493 }
1494 } 1494 }
1495 // Log the event and add the code to the builtins array. 1495 // Log the event and add the code to the builtins array.
1496 LOG(CodeCreateEvent(Logger::BUILTIN_TAG, 1496 PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG,
1497 Code::cast(code), functions[i].s_name)); 1497 Code::cast(code), functions[i].s_name));
1498 builtins_[i] = code; 1498 builtins_[i] = code;
1499 #ifdef ENABLE_DISASSEMBLER 1499 #ifdef ENABLE_DISASSEMBLER
1500 if (FLAG_print_builtin_code) { 1500 if (FLAG_print_builtin_code) {
1501 PrintF("Builtin: %s\n", functions[i].s_name); 1501 PrintF("Builtin: %s\n", functions[i].s_name);
1502 Code::cast(code)->Disassemble(functions[i].s_name); 1502 Code::cast(code)->Disassemble(functions[i].s_name);
1503 PrintF("\n"); 1503 PrintF("\n");
1504 } 1504 }
1505 #endif 1505 #endif
1506 } else { 1506 } else {
1507 // Deserializing. The values will be filled in during IterateBuiltins. 1507 // Deserializing. The values will be filled in during IterateBuiltins.
(...skipping 24 matching lines...) Expand all
1532 if (entry->contains(pc)) { 1532 if (entry->contains(pc)) {
1533 return names_[i]; 1533 return names_[i];
1534 } 1534 }
1535 } 1535 }
1536 } 1536 }
1537 return NULL; 1537 return NULL;
1538 } 1538 }
1539 1539
1540 1540
1541 } } // namespace v8::internal 1541 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/code-stubs.cc » ('j') | src/platform-linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698