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

Side by Side Diff: src/compiler/linkage.cc

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 | « src/compiler/linkage.h ('k') | src/compiler/linkage-impl.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/linkage.h" 5 #include "src/compiler/linkage.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 offset = 72 offset =
73 -(spill_slot + 1) * kPointerSize - register_save_area_size + extra; 73 -(spill_slot + 1) * kPointerSize - register_save_area_size + extra;
74 } else { 74 } else {
75 // Incoming parameter. Skip the return address. 75 // Incoming parameter. Skip the return address.
76 offset = -(spill_slot + 1) * kPointerSize + kFPOnStackSize + 76 offset = -(spill_slot + 1) * kPointerSize + kFPOnStackSize +
77 kPCOnStackSize + extra; 77 kPCOnStackSize + extra;
78 } 78 }
79 return FrameOffset::FromFramePointer(offset); 79 return FrameOffset::FromFramePointer(offset);
80 } else { 80 } else {
81 // No frame. Retrieve all parameters relative to stack pointer. 81 // No frame. Retrieve all parameters relative to stack pointer.
82 ASSERT(spill_slot < 0); // Must be a parameter. 82 DCHECK(spill_slot < 0); // Must be a parameter.
83 int register_save_area_size = frame->GetRegisterSaveAreaSize(); 83 int register_save_area_size = frame->GetRegisterSaveAreaSize();
84 int offset = register_save_area_size - (spill_slot + 1) * kPointerSize + 84 int offset = register_save_area_size - (spill_slot + 1) * kPointerSize +
85 kPCOnStackSize + extra; 85 kPCOnStackSize + extra;
86 return FrameOffset::FromStackPointer(offset); 86 return FrameOffset::FromStackPointer(offset);
87 } 87 }
88 } 88 }
89 89
90 90
91 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count) { 91 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count) {
92 return GetJSCallDescriptor(parameter_count, this->info_->zone()); 92 return GetJSCallDescriptor(parameter_count, this->info_->zone());
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 CallDescriptor* Linkage::GetSimplifiedCDescriptor( 131 CallDescriptor* Linkage::GetSimplifiedCDescriptor(
132 Zone* zone, int num_params, MachineRepresentation return_type, 132 Zone* zone, int num_params, MachineRepresentation return_type,
133 const MachineRepresentation* param_types) { 133 const MachineRepresentation* param_types) {
134 UNIMPLEMENTED(); 134 UNIMPLEMENTED();
135 return NULL; 135 return NULL;
136 } 136 }
137 #endif // !V8_TURBOFAN_TARGET 137 #endif // !V8_TURBOFAN_TARGET
138 } 138 }
139 } 139 }
140 } // namespace v8::internal::compiler 140 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/linkage.h ('k') | src/compiler/linkage-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698