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

Side by Side Diff: src/builtins.cc

Issue 656533003: Special handling for inline caches in code serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 2 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 | « no previous file | src/execution.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/base/once.h" 9 #include "src/base/once.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 // Move the code into the object heap. 1567 // Move the code into the object heap.
1568 CodeDesc desc; 1568 CodeDesc desc;
1569 masm.GetCode(&desc); 1569 masm.GetCode(&desc);
1570 Code::Flags flags = functions[i].flags; 1570 Code::Flags flags = functions[i].flags;
1571 Handle<Code> code = 1571 Handle<Code> code =
1572 isolate->factory()->NewCode(desc, flags, masm.CodeObject()); 1572 isolate->factory()->NewCode(desc, flags, masm.CodeObject());
1573 // Log the event and add the code to the builtins array. 1573 // Log the event and add the code to the builtins array.
1574 PROFILE(isolate, 1574 PROFILE(isolate,
1575 CodeCreateEvent(Logger::BUILTIN_TAG, *code, functions[i].s_name)); 1575 CodeCreateEvent(Logger::BUILTIN_TAG, *code, functions[i].s_name));
1576 builtins_[i] = *code; 1576 builtins_[i] = *code;
1577 if (code->kind() == Code::BUILTIN) code->set_builtin_index(i); 1577 code->set_builtin_index(i);
1578 #ifdef ENABLE_DISASSEMBLER 1578 #ifdef ENABLE_DISASSEMBLER
1579 if (FLAG_print_builtin_code) { 1579 if (FLAG_print_builtin_code) {
1580 CodeTracer::Scope trace_scope(isolate->GetCodeTracer()); 1580 CodeTracer::Scope trace_scope(isolate->GetCodeTracer());
1581 OFStream os(trace_scope.file()); 1581 OFStream os(trace_scope.file());
1582 os << "Builtin: " << functions[i].s_name << "\n"; 1582 os << "Builtin: " << functions[i].s_name << "\n";
1583 code->Disassemble(functions[i].s_name, os); 1583 code->Disassemble(functions[i].s_name, os);
1584 os << "\n"; 1584 os << "\n";
1585 } 1585 }
1586 #endif 1586 #endif
1587 } else { 1587 } else {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 } 1650 }
1651 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 1651 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
1652 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 1652 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
1653 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 1653 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
1654 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 1654 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
1655 #undef DEFINE_BUILTIN_ACCESSOR_C 1655 #undef DEFINE_BUILTIN_ACCESSOR_C
1656 #undef DEFINE_BUILTIN_ACCESSOR_A 1656 #undef DEFINE_BUILTIN_ACCESSOR_A
1657 1657
1658 1658
1659 } } // namespace v8::internal 1659 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698