blob: 0d4b8cb20079b0e28fd45fa435c6b48611e99709 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// 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
3// found in the LICENSE file.
4
Ben Murdochb8a8cc12014-11-26 15:28:44 +00005#include "src/compiler/raw-machine-assembler.h"
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00006
7#include "src/code-factory.h"
8#include "src/compiler/node-properties.h"
9#include "src/compiler/pipeline.h"
Ben Murdochb8a8cc12014-11-26 15:28:44 +000010#include "src/compiler/scheduler.h"
11
12namespace v8 {
13namespace internal {
14namespace compiler {
15
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000016RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph,
17 CallDescriptor* call_descriptor,
18 MachineRepresentation word,
Emily Bernierd0a1eb72015-03-24 16:35:39 -040019 MachineOperatorBuilder::Flags flags)
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000020 : isolate_(isolate),
21 graph_(graph),
Ben Murdochb8a8cc12014-11-26 15:28:44 +000022 schedule_(new (zone()) Schedule(zone())),
Emily Bernierd0a1eb72015-03-24 16:35:39 -040023 machine_(zone(), word, flags),
Ben Murdochb8a8cc12014-11-26 15:28:44 +000024 common_(zone()),
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000025 call_descriptor_(call_descriptor),
26 parameters_(parameter_count(), zone()),
Ben Murdochb8a8cc12014-11-26 15:28:44 +000027 current_block_(schedule()->start()) {
28 int param_count = static_cast<int>(parameter_count());
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000029 // Add an extra input for the JSFunction parameter to the start node.
30 graph->SetStart(graph->NewNode(common_.Start(param_count + 1)));
Ben Murdochb8a8cc12014-11-26 15:28:44 +000031 for (size_t i = 0; i < parameter_count(); ++i) {
32 parameters_[i] =
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000033 AddNode(common()->Parameter(static_cast<int>(i)), graph->start());
Ben Murdochb8a8cc12014-11-26 15:28:44 +000034 }
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000035 graph->SetEnd(graph->NewNode(common_.End(0)));
Ben Murdochb8a8cc12014-11-26 15:28:44 +000036}
37
38
39Schedule* RawMachineAssembler::Export() {
40 // Compute the correct codegen order.
41 DCHECK(schedule_->rpo_order()->empty());
Emily Bernierd0a1eb72015-03-24 16:35:39 -040042 Scheduler::ComputeSpecialRPO(zone(), schedule_);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000043 // Invalidate RawMachineAssembler.
Ben Murdochb8a8cc12014-11-26 15:28:44 +000044 Schedule* schedule = schedule_;
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000045 schedule_ = nullptr;
Ben Murdochb8a8cc12014-11-26 15:28:44 +000046 return schedule;
47}
48
49
50Node* RawMachineAssembler::Parameter(size_t index) {
51 DCHECK(index < parameter_count());
52 return parameters_[index];
53}
54
55
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000056void RawMachineAssembler::Goto(RawMachineLabel* label) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000057 DCHECK(current_block_ != schedule()->end());
58 schedule()->AddGoto(CurrentBlock(), Use(label));
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000059 current_block_ = nullptr;
Ben Murdochb8a8cc12014-11-26 15:28:44 +000060}
61
62
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000063void RawMachineAssembler::Branch(Node* condition, RawMachineLabel* true_val,
64 RawMachineLabel* false_val) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000065 DCHECK(current_block_ != schedule()->end());
Ben Murdoch097c5b22016-05-18 11:27:45 +010066 Node* branch = MakeNode(common()->Branch(), 1, &condition);
Ben Murdochb8a8cc12014-11-26 15:28:44 +000067 schedule()->AddBranch(CurrentBlock(), branch, Use(true_val), Use(false_val));
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000068 current_block_ = nullptr;
69}
70
71
72void RawMachineAssembler::Switch(Node* index, RawMachineLabel* default_label,
73 int32_t* case_values,
74 RawMachineLabel** case_labels,
75 size_t case_count) {
76 DCHECK_NE(schedule()->end(), current_block_);
77 size_t succ_count = case_count + 1;
78 Node* switch_node = AddNode(common()->Switch(succ_count), index);
79 BasicBlock** succ_blocks = zone()->NewArray<BasicBlock*>(succ_count);
80 for (size_t index = 0; index < case_count; ++index) {
81 int32_t case_value = case_values[index];
82 BasicBlock* case_block = Use(case_labels[index]);
83 Node* case_node =
84 graph()->NewNode(common()->IfValue(case_value), switch_node);
85 schedule()->AddNode(case_block, case_node);
86 succ_blocks[index] = case_block;
87 }
88 BasicBlock* default_block = Use(default_label);
89 Node* default_node = graph()->NewNode(common()->IfDefault(), switch_node);
90 schedule()->AddNode(default_block, default_node);
91 succ_blocks[case_count] = default_block;
92 schedule()->AddSwitch(CurrentBlock(), switch_node, succ_blocks, succ_count);
93 current_block_ = nullptr;
Ben Murdochb8a8cc12014-11-26 15:28:44 +000094}
95
96
97void RawMachineAssembler::Return(Node* value) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000098 Node* ret = MakeNode(common()->Return(), 1, &value);
99 NodeProperties::MergeControlToEnd(graph(), common(), ret);
100 schedule()->AddReturn(CurrentBlock(), ret);
101 current_block_ = nullptr;
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000102}
103
104
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000105void RawMachineAssembler::Return(Node* v1, Node* v2) {
106 Node* values[] = {v1, v2};
107 Node* ret = MakeNode(common()->Return(2), 2, values);
108 NodeProperties::MergeControlToEnd(graph(), common(), ret);
109 schedule()->AddReturn(CurrentBlock(), ret);
110 current_block_ = nullptr;
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000111}
112
113
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000114void RawMachineAssembler::Return(Node* v1, Node* v2, Node* v3) {
115 Node* values[] = {v1, v2, v3};
116 Node* ret = MakeNode(common()->Return(3), 3, values);
117 NodeProperties::MergeControlToEnd(graph(), common(), ret);
118 schedule()->AddReturn(CurrentBlock(), ret);
119 current_block_ = nullptr;
120}
121
122
123Node* RawMachineAssembler::CallN(CallDescriptor* desc, Node* function,
124 Node** args) {
125 int param_count =
126 static_cast<int>(desc->GetMachineSignature()->parameter_count());
127 int input_count = param_count + 1;
128 Node** buffer = zone()->NewArray<Node*>(input_count);
129 int index = 0;
130 buffer[index++] = function;
131 for (int i = 0; i < param_count; i++) {
132 buffer[index++] = args[i];
133 }
134 return AddNode(common()->Call(desc), input_count, buffer);
135}
136
137
138Node* RawMachineAssembler::CallNWithFrameState(CallDescriptor* desc,
139 Node* function, Node** args,
140 Node* frame_state) {
141 DCHECK(desc->NeedsFrameState());
142 int param_count =
143 static_cast<int>(desc->GetMachineSignature()->parameter_count());
144 int input_count = param_count + 2;
145 Node** buffer = zone()->NewArray<Node*>(input_count);
146 int index = 0;
147 buffer[index++] = function;
148 for (int i = 0; i < param_count; i++) {
149 buffer[index++] = args[i];
150 }
151 buffer[index++] = frame_state;
152 return AddNode(common()->Call(desc), input_count, buffer);
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000153}
154
Ben Murdoch097c5b22016-05-18 11:27:45 +0100155Node* RawMachineAssembler::CallRuntime0(Runtime::FunctionId function,
156 Node* context) {
157 CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor(
158 zone(), function, 0, Operator::kNoProperties, CallDescriptor::kNoFlags);
159 int return_count = static_cast<int>(descriptor->ReturnCount());
160
161 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
162 Node* ref = AddNode(
163 common()->ExternalConstant(ExternalReference(function, isolate())));
164 Node* arity = Int32Constant(0);
165
166 return AddNode(common()->Call(descriptor), centry, ref, arity, context);
167}
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000168
169Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function,
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000170 Node* arg1, Node* context) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000171 CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor(
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000172 zone(), function, 1, Operator::kNoProperties, CallDescriptor::kNoFlags);
173 int return_count = static_cast<int>(descriptor->ReturnCount());
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000174
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000175 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
176 Node* ref = AddNode(
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000177 common()->ExternalConstant(ExternalReference(function, isolate())));
178 Node* arity = Int32Constant(1);
179
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000180 return AddNode(common()->Call(descriptor), centry, arg1, ref, arity, context);
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000181}
182
183
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000184Node* RawMachineAssembler::CallRuntime2(Runtime::FunctionId function,
185 Node* arg1, Node* arg2, Node* context) {
186 CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor(
187 zone(), function, 2, Operator::kNoProperties, CallDescriptor::kNoFlags);
188 int return_count = static_cast<int>(descriptor->ReturnCount());
189
190 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
191 Node* ref = AddNode(
192 common()->ExternalConstant(ExternalReference(function, isolate())));
193 Node* arity = Int32Constant(2);
194
195 return AddNode(common()->Call(descriptor), centry, arg1, arg2, ref, arity,
196 context);
197}
198
Ben Murdoch097c5b22016-05-18 11:27:45 +0100199Node* RawMachineAssembler::CallRuntime3(Runtime::FunctionId function,
200 Node* arg1, Node* arg2, Node* arg3,
201 Node* context) {
202 CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor(
203 zone(), function, 3, Operator::kNoProperties, CallDescriptor::kNoFlags);
204 int return_count = static_cast<int>(descriptor->ReturnCount());
205
206 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
207 Node* ref = AddNode(
208 common()->ExternalConstant(ExternalReference(function, isolate())));
209 Node* arity = Int32Constant(3);
210
211 return AddNode(common()->Call(descriptor), centry, arg1, arg2, arg3, ref,
212 arity, context);
213}
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000214
215Node* RawMachineAssembler::CallRuntime4(Runtime::FunctionId function,
216 Node* arg1, Node* arg2, Node* arg3,
217 Node* arg4, Node* context) {
218 CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor(
219 zone(), function, 4, Operator::kNoProperties, CallDescriptor::kNoFlags);
220 int return_count = static_cast<int>(descriptor->ReturnCount());
221
222 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
223 Node* ref = AddNode(
224 common()->ExternalConstant(ExternalReference(function, isolate())));
225 Node* arity = Int32Constant(4);
226
227 return AddNode(common()->Call(descriptor), centry, arg1, arg2, arg3, arg4,
228 ref, arity, context);
229}
230
231
232Node* RawMachineAssembler::TailCallN(CallDescriptor* desc, Node* function,
233 Node** args) {
234 int param_count =
235 static_cast<int>(desc->GetMachineSignature()->parameter_count());
236 int input_count = param_count + 1;
237 Node** buffer = zone()->NewArray<Node*>(input_count);
238 int index = 0;
239 buffer[index++] = function;
240 for (int i = 0; i < param_count; i++) {
241 buffer[index++] = args[i];
242 }
243 Node* tail_call = MakeNode(common()->TailCall(desc), input_count, buffer);
244 NodeProperties::MergeControlToEnd(graph(), common(), tail_call);
245 schedule()->AddTailCall(CurrentBlock(), tail_call);
246 current_block_ = nullptr;
247 return tail_call;
248}
249
250
251Node* RawMachineAssembler::TailCallRuntime1(Runtime::FunctionId function,
252 Node* arg1, Node* context) {
253 const int kArity = 1;
254 CallDescriptor* desc = Linkage::GetRuntimeCallDescriptor(
255 zone(), function, kArity, Operator::kNoProperties,
256 CallDescriptor::kSupportsTailCalls);
257 int return_count = static_cast<int>(desc->ReturnCount());
258
259 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
260 Node* ref = AddNode(
261 common()->ExternalConstant(ExternalReference(function, isolate())));
262 Node* arity = Int32Constant(kArity);
263
264 Node* nodes[] = {centry, arg1, ref, arity, context};
265 Node* tail_call = MakeNode(common()->TailCall(desc), arraysize(nodes), nodes);
266
267 NodeProperties::MergeControlToEnd(graph(), common(), tail_call);
268 schedule()->AddTailCall(CurrentBlock(), tail_call);
269 current_block_ = nullptr;
270 return tail_call;
271}
272
273
274Node* RawMachineAssembler::TailCallRuntime2(Runtime::FunctionId function,
275 Node* arg1, Node* arg2,
276 Node* context) {
277 const int kArity = 2;
278 CallDescriptor* desc = Linkage::GetRuntimeCallDescriptor(
279 zone(), function, kArity, Operator::kNoProperties,
280 CallDescriptor::kSupportsTailCalls);
281 int return_count = static_cast<int>(desc->ReturnCount());
282
283 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
284 Node* ref = AddNode(
285 common()->ExternalConstant(ExternalReference(function, isolate())));
286 Node* arity = Int32Constant(kArity);
287
288 Node* nodes[] = {centry, arg1, arg2, ref, arity, context};
289 Node* tail_call = MakeNode(common()->TailCall(desc), arraysize(nodes), nodes);
290
291 NodeProperties::MergeControlToEnd(graph(), common(), tail_call);
292 schedule()->AddTailCall(CurrentBlock(), tail_call);
293 current_block_ = nullptr;
294 return tail_call;
295}
296
Ben Murdoch097c5b22016-05-18 11:27:45 +0100297Node* RawMachineAssembler::TailCallRuntime3(Runtime::FunctionId function,
298 Node* arg1, Node* arg2, Node* arg3,
299 Node* context) {
300 const int kArity = 3;
301 CallDescriptor* desc = Linkage::GetRuntimeCallDescriptor(
302 zone(), function, kArity, Operator::kNoProperties,
303 CallDescriptor::kSupportsTailCalls);
304 int return_count = static_cast<int>(desc->ReturnCount());
305
306 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
307 Node* ref = AddNode(
308 common()->ExternalConstant(ExternalReference(function, isolate())));
309 Node* arity = Int32Constant(kArity);
310
311 Node* nodes[] = {centry, arg1, arg2, arg3, ref, arity, context};
312 Node* tail_call = MakeNode(common()->TailCall(desc), arraysize(nodes), nodes);
313
314 NodeProperties::MergeControlToEnd(graph(), common(), tail_call);
315 schedule()->AddTailCall(CurrentBlock(), tail_call);
316 current_block_ = nullptr;
317 return tail_call;
318}
319
320Node* RawMachineAssembler::TailCallRuntime4(Runtime::FunctionId function,
321 Node* arg1, Node* arg2, Node* arg3,
322 Node* arg4, Node* context) {
323 const int kArity = 4;
324 CallDescriptor* desc = Linkage::GetRuntimeCallDescriptor(
325 zone(), function, kArity, Operator::kNoProperties,
326 CallDescriptor::kSupportsTailCalls);
327 int return_count = static_cast<int>(desc->ReturnCount());
328
329 Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode());
330 Node* ref = AddNode(
331 common()->ExternalConstant(ExternalReference(function, isolate())));
332 Node* arity = Int32Constant(kArity);
333
334 Node* nodes[] = {centry, arg1, arg2, arg3, arg4, ref, arity, context};
335 Node* tail_call = MakeNode(common()->TailCall(desc), arraysize(nodes), nodes);
336
337 NodeProperties::MergeControlToEnd(graph(), common(), tail_call);
338 schedule()->AddTailCall(CurrentBlock(), tail_call);
339 current_block_ = nullptr;
340 return tail_call;
341}
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000342
343Node* RawMachineAssembler::CallCFunction0(MachineType return_type,
344 Node* function) {
345 MachineSignature::Builder builder(zone(), 1, 0);
346 builder.AddReturn(return_type);
347 const CallDescriptor* descriptor =
348 Linkage::GetSimplifiedCDescriptor(zone(), builder.Build());
349
350 return AddNode(common()->Call(descriptor), function);
351}
352
353
354Node* RawMachineAssembler::CallCFunction1(MachineType return_type,
355 MachineType arg0_type, Node* function,
356 Node* arg0) {
357 MachineSignature::Builder builder(zone(), 1, 1);
358 builder.AddReturn(return_type);
359 builder.AddParam(arg0_type);
360 const CallDescriptor* descriptor =
361 Linkage::GetSimplifiedCDescriptor(zone(), builder.Build());
362
363 return AddNode(common()->Call(descriptor), function, arg0);
364}
365
366
367Node* RawMachineAssembler::CallCFunction2(MachineType return_type,
368 MachineType arg0_type,
369 MachineType arg1_type, Node* function,
370 Node* arg0, Node* arg1) {
371 MachineSignature::Builder builder(zone(), 1, 2);
372 builder.AddReturn(return_type);
373 builder.AddParam(arg0_type);
374 builder.AddParam(arg1_type);
375 const CallDescriptor* descriptor =
376 Linkage::GetSimplifiedCDescriptor(zone(), builder.Build());
377
378 return AddNode(common()->Call(descriptor), function, arg0, arg1);
379}
380
381
382Node* RawMachineAssembler::CallCFunction8(
383 MachineType return_type, MachineType arg0_type, MachineType arg1_type,
384 MachineType arg2_type, MachineType arg3_type, MachineType arg4_type,
385 MachineType arg5_type, MachineType arg6_type, MachineType arg7_type,
386 Node* function, Node* arg0, Node* arg1, Node* arg2, Node* arg3, Node* arg4,
387 Node* arg5, Node* arg6, Node* arg7) {
388 MachineSignature::Builder builder(zone(), 1, 8);
389 builder.AddReturn(return_type);
390 builder.AddParam(arg0_type);
391 builder.AddParam(arg1_type);
392 builder.AddParam(arg2_type);
393 builder.AddParam(arg3_type);
394 builder.AddParam(arg4_type);
395 builder.AddParam(arg5_type);
396 builder.AddParam(arg6_type);
397 builder.AddParam(arg7_type);
398 Node* args[] = {function, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7};
399 const CallDescriptor* descriptor =
400 Linkage::GetSimplifiedCDescriptor(zone(), builder.Build());
401 return AddNode(common()->Call(descriptor), arraysize(args), args);
402}
403
404
405void RawMachineAssembler::Bind(RawMachineLabel* label) {
406 DCHECK(current_block_ == nullptr);
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000407 DCHECK(!label->bound_);
408 label->bound_ = true;
409 current_block_ = EnsureBlock(label);
410}
411
412
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000413BasicBlock* RawMachineAssembler::Use(RawMachineLabel* label) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000414 label->used_ = true;
415 return EnsureBlock(label);
416}
417
418
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000419BasicBlock* RawMachineAssembler::EnsureBlock(RawMachineLabel* label) {
420 if (label->block_ == nullptr) label->block_ = schedule()->NewBasicBlock();
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000421 return label->block_;
422}
423
424
425BasicBlock* RawMachineAssembler::CurrentBlock() {
426 DCHECK(current_block_);
427 return current_block_;
428}
429
Ben Murdoch097c5b22016-05-18 11:27:45 +0100430Node* RawMachineAssembler::Phi(MachineRepresentation rep, int input_count,
431 Node* const* inputs) {
432 Node** buffer = new (zone()->New(sizeof(Node*) * (input_count + 1)))
433 Node*[input_count + 1];
434 std::copy(inputs, inputs + input_count, buffer);
435 buffer[input_count] = graph()->start();
436 return AddNode(common()->Phi(rep, input_count), input_count + 1, buffer);
437}
438
439void RawMachineAssembler::AppendPhiInput(Node* phi, Node* new_input) {
440 const Operator* op = phi->op();
441 const Operator* new_op = common()->ResizeMergeOrPhi(op, phi->InputCount());
442 phi->InsertInput(zone(), phi->InputCount() - 1, new_input);
443 NodeProperties::ChangeOp(phi, new_op);
444}
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000445
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000446Node* RawMachineAssembler::AddNode(const Operator* op, int input_count,
Ben Murdoch097c5b22016-05-18 11:27:45 +0100447 Node* const* inputs) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000448 DCHECK_NOT_NULL(schedule_);
449 DCHECK_NOT_NULL(current_block_);
450 Node* node = MakeNode(op, input_count, inputs);
451 schedule()->AddNode(CurrentBlock(), node);
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000452 return node;
453}
454
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000455Node* RawMachineAssembler::MakeNode(const Operator* op, int input_count,
Ben Murdoch097c5b22016-05-18 11:27:45 +0100456 Node* const* inputs) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000457 // The raw machine assembler nodes do not have effect and control inputs,
458 // so we disable checking input counts here.
459 return graph()->NewNodeUnchecked(op, input_count, inputs);
460}
461
462
463RawMachineLabel::RawMachineLabel()
464 : block_(nullptr), used_(false), bound_(false) {}
465
466
467RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); }
468
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000469} // namespace compiler
470} // namespace internal
471} // namespace v8