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

Side by Side Diff: src/assembler.cc

Issue 1030353003: Enable constant pool support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 (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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Implementation of AssemblerBase 128 // Implementation of AssemblerBase
129 129
130 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) 130 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size)
131 : isolate_(isolate), 131 : isolate_(isolate),
132 jit_cookie_(0), 132 jit_cookie_(0),
133 enabled_cpu_features_(0), 133 enabled_cpu_features_(0),
134 emit_debug_code_(FLAG_debug_code), 134 emit_debug_code_(FLAG_debug_code),
135 predictable_code_size_(false), 135 predictable_code_size_(false),
136 // We may use the assembler without an isolate. 136 // We may use the assembler without an isolate.
137 serializer_enabled_(isolate && isolate->serializer_enabled()), 137 serializer_enabled_(isolate && isolate->serializer_enabled()),
138 ool_constant_pool_available_(false) { 138 constant_pool_available_(false) {
139 if (FLAG_mask_constants_with_cookie && isolate != NULL) { 139 if (FLAG_mask_constants_with_cookie && isolate != NULL) {
140 jit_cookie_ = isolate->random_number_generator()->NextInt(); 140 jit_cookie_ = isolate->random_number_generator()->NextInt();
141 } 141 }
142 own_buffer_ = buffer == NULL; 142 own_buffer_ = buffer == NULL;
143 if (buffer_size == 0) buffer_size = kMinimalBufferSize; 143 if (buffer_size == 0) buffer_size = kMinimalBufferSize;
144 DCHECK(buffer_size > 0); 144 DCHECK(buffer_size > 0);
145 if (own_buffer_) buffer = NewArray<byte>(buffer_size); 145 if (own_buffer_) buffer = NewArray<byte>(buffer_size);
146 buffer_ = static_cast<byte*>(buffer); 146 buffer_ = static_cast<byte*>(buffer);
147 buffer_size_ = buffer_size; 147 buffer_size_ = buffer_size;
148 148
(...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 RecordRelocInfo(RelocInfo::JS_RETURN); 1677 RecordRelocInfo(RelocInfo::JS_RETURN);
1678 } 1678 }
1679 1679
1680 1680
1681 void Assembler::RecordDebugBreakSlot() { 1681 void Assembler::RecordDebugBreakSlot() {
1682 positions_recorder()->WriteRecordedPositions(); 1682 positions_recorder()->WriteRecordedPositions();
1683 EnsureSpace ensure_space(this); 1683 EnsureSpace ensure_space(this);
1684 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); 1684 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT);
1685 } 1685 }
1686 } } // namespace v8::internal 1686 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/compiler/code-generator.cc » ('j') | src/compiler/code-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698