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

Side by Side Diff: src/safepoint-table.cc

Issue 885813002: Minor refactoring for Zone class and friends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/profile-generator.cc ('k') | src/scopeinfo.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/safepoint-table.h" 7 #include "src/safepoint-table.h"
8 8
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/disasm.h" 10 #include "src/disasm.h"
11 #include "src/macro-assembler.h" 11 #include "src/macro-assembler.h"
12 #include "src/ostreams.h" 12 #include "src/ostreams.h"
13 #include "src/zone-inl.h"
14 13
15 namespace v8 { 14 namespace v8 {
16 namespace internal { 15 namespace internal {
17 16
18 17
19 bool SafepointEntry::HasRegisters() const { 18 bool SafepointEntry::HasRegisters() const {
20 DCHECK(is_valid()); 19 DCHECK(is_valid());
21 DCHECK(IsAligned(kNumSafepointRegisters, kBitsPerByte)); 20 DCHECK(IsAligned(kNumSafepointRegisters, kBitsPerByte));
22 const int num_reg_bytes = kNumSafepointRegisters >> kBitsPerByteLog2; 21 const int num_reg_bytes = kNumSafepointRegisters >> kBitsPerByteLog2;
23 for (int i = 0; i < num_reg_bytes; i++) { 22 for (int i = 0; i < num_reg_bytes; i++) {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 unsigned index) { 207 unsigned index) {
209 uint32_t encoding = SafepointEntry::DeoptimizationIndexField::encode(index); 208 uint32_t encoding = SafepointEntry::DeoptimizationIndexField::encode(index);
210 encoding |= SafepointEntry::ArgumentsField::encode(info.arguments); 209 encoding |= SafepointEntry::ArgumentsField::encode(info.arguments);
211 encoding |= SafepointEntry::SaveDoublesField::encode(info.has_doubles); 210 encoding |= SafepointEntry::SaveDoublesField::encode(info.has_doubles);
212 return encoding; 211 return encoding;
213 } 212 }
214 213
215 214
216 215
217 } } // namespace v8::internal 216 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | src/scopeinfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698