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

Side by Side Diff: src/assembler.cc

Issue 1671813003: [interpreter] move the dispatch table off heap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix verify heap Created 4 years, 10 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
« no previous file with comments | « src/assembler.h ('k') | src/heap/heap.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "src/base/utils/random-number-generator.h" 44 #include "src/base/utils/random-number-generator.h"
45 #include "src/builtins.h" 45 #include "src/builtins.h"
46 #include "src/codegen.h" 46 #include "src/codegen.h"
47 #include "src/counters.h" 47 #include "src/counters.h"
48 #include "src/debug/debug.h" 48 #include "src/debug/debug.h"
49 #include "src/deoptimizer.h" 49 #include "src/deoptimizer.h"
50 #include "src/disassembler.h" 50 #include "src/disassembler.h"
51 #include "src/execution.h" 51 #include "src/execution.h"
52 #include "src/ic/ic.h" 52 #include "src/ic/ic.h"
53 #include "src/ic/stub-cache.h" 53 #include "src/ic/stub-cache.h"
54 #include "src/interpreter/interpreter.h"
54 #include "src/ostreams.h" 55 #include "src/ostreams.h"
55 #include "src/profiler/cpu-profiler.h" 56 #include "src/profiler/cpu-profiler.h"
56 #include "src/regexp/jsregexp.h" 57 #include "src/regexp/jsregexp.h"
57 #include "src/regexp/regexp-macro-assembler.h" 58 #include "src/regexp/regexp-macro-assembler.h"
58 #include "src/regexp/regexp-stack.h" 59 #include "src/regexp/regexp-stack.h"
59 #include "src/register-configuration.h" 60 #include "src/register-configuration.h"
60 #include "src/runtime/runtime.h" 61 #include "src/runtime/runtime.h"
61 #include "src/simulator.h" // For flushing instruction cache. 62 #include "src/simulator.h" // For flushing instruction cache.
62 #include "src/snapshot/serialize.h" 63 #include "src/snapshot/serialize.h"
63 64
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 ExternalReference::ExternalReference(const Runtime::Function* f, 1046 ExternalReference::ExternalReference(const Runtime::Function* f,
1046 Isolate* isolate) 1047 Isolate* isolate)
1047 : address_(Redirect(isolate, f->entry, 1048 : address_(Redirect(isolate, f->entry,
1048 BuiltinCallTypeForResultSize(f->result_size))) {} 1049 BuiltinCallTypeForResultSize(f->result_size))) {}
1049 1050
1050 1051
1051 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { 1052 ExternalReference ExternalReference::isolate_address(Isolate* isolate) {
1052 return ExternalReference(isolate); 1053 return ExternalReference(isolate);
1053 } 1054 }
1054 1055
1056 ExternalReference ExternalReference::interpreter_dispatch_table_address(
1057 Isolate* isolate) {
1058 return ExternalReference(isolate->interpreter()->dispatch_table_address());
1059 }
1055 1060
1056 ExternalReference::ExternalReference(StatsCounter* counter) 1061 ExternalReference::ExternalReference(StatsCounter* counter)
1057 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} 1062 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {}
1058 1063
1059 1064
1060 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) 1065 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate)
1061 : address_(isolate->get_address_from_id(id)) {} 1066 : address_(isolate->get_address_from_id(id)) {}
1062 1067
1063 1068
1064 ExternalReference::ExternalReference(const SCTableReference& table_ref) 1069 ExternalReference::ExternalReference(const SCTableReference& table_ref)
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 1939
1935 1940
1936 void Assembler::DataAlign(int m) { 1941 void Assembler::DataAlign(int m) {
1937 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1942 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1938 while ((pc_offset() & (m - 1)) != 0) { 1943 while ((pc_offset() & (m - 1)) != 0) {
1939 db(0); 1944 db(0);
1940 } 1945 }
1941 } 1946 }
1942 } // namespace internal 1947 } // namespace internal
1943 } // namespace v8 1948 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698