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

Side by Side Diff: src/heap/heap.cc

Issue 1601813009: [interpreter] Add field for source position table to byte code array. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comment Created 4 years, 11 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 | « no previous file | src/objects.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 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/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/ast/scopeinfo.h" 9 #include "src/ast/scopeinfo.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3050 if (!allocation.To(&result)) return allocation; 3050 if (!allocation.To(&result)) return allocation;
3051 } 3051 }
3052 3052
3053 result->set_map_no_write_barrier(bytecode_array_map()); 3053 result->set_map_no_write_barrier(bytecode_array_map());
3054 BytecodeArray* instance = BytecodeArray::cast(result); 3054 BytecodeArray* instance = BytecodeArray::cast(result);
3055 instance->set_length(length); 3055 instance->set_length(length);
3056 instance->set_frame_size(frame_size); 3056 instance->set_frame_size(frame_size);
3057 instance->set_parameter_count(parameter_count); 3057 instance->set_parameter_count(parameter_count);
3058 instance->set_constant_pool(constant_pool); 3058 instance->set_constant_pool(constant_pool);
3059 instance->set_handler_table(empty_fixed_array()); 3059 instance->set_handler_table(empty_fixed_array());
3060 instance->set_source_position_table(empty_fixed_array());
3060 CopyBytes(instance->GetFirstBytecodeAddress(), raw_bytecodes, length); 3061 CopyBytes(instance->GetFirstBytecodeAddress(), raw_bytecodes, length);
3061 3062
3062 return result; 3063 return result;
3063 } 3064 }
3064 3065
3065 3066
3066 void Heap::CreateFillerObjectAt(Address addr, int size) { 3067 void Heap::CreateFillerObjectAt(Address addr, int size) {
3067 if (size == 0) return; 3068 if (size == 0) return;
3068 HeapObject* filler = HeapObject::FromAddress(addr); 3069 HeapObject* filler = HeapObject::FromAddress(addr);
3069 if (size == kPointerSize) { 3070 if (size == kPointerSize) {
(...skipping 3173 matching lines...) Expand 10 before | Expand all | Expand 10 after
6243 } 6244 }
6244 6245
6245 6246
6246 // static 6247 // static
6247 int Heap::GetStaticVisitorIdForMap(Map* map) { 6248 int Heap::GetStaticVisitorIdForMap(Map* map) {
6248 return StaticVisitorBase::GetVisitorId(map); 6249 return StaticVisitorBase::GetVisitorId(map);
6249 } 6250 }
6250 6251
6251 } // namespace internal 6252 } // namespace internal
6252 } // namespace v8 6253 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698