| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index 4bf84a8585c0b8e8456bd0c16e4e7d4b2bc9fe32..f1c1c6e35b1003f74daab5015c5038bf483cbbed 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -30,7 +30,7 @@
|
| #if defined(V8_TARGET_ARCH_X64)
|
|
|
| #include "code-stubs.h"
|
| -#include "codegen-inl.h"
|
| +#include "codegen.h"
|
| #include "compiler.h"
|
| #include "debug.h"
|
| #include "full-codegen.h"
|
| @@ -781,7 +781,7 @@ void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
|
| // Compile all the tests with branches to their bodies.
|
| for (int i = 0; i < clauses->length(); i++) {
|
| CaseClause* clause = clauses->at(i);
|
| - clause->body_target()->entry_label()->Unuse();
|
| + clause->body_target()->Unuse();
|
|
|
| // The default is not a test, but remember it as final fall through.
|
| if (clause->is_default()) {
|
| @@ -809,7 +809,7 @@ void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
|
| __ cmpq(rdx, rax);
|
| __ j(not_equal, &next_test);
|
| __ Drop(1); // Switch value is no longer needed.
|
| - __ jmp(clause->body_target()->entry_label());
|
| + __ jmp(clause->body_target());
|
| __ bind(&slow_case);
|
| }
|
|
|
| @@ -821,7 +821,7 @@ void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
|
| __ testq(rax, rax);
|
| __ j(not_equal, &next_test);
|
| __ Drop(1); // Switch value is no longer needed.
|
| - __ jmp(clause->body_target()->entry_label());
|
| + __ jmp(clause->body_target());
|
| }
|
|
|
| // Discard the test value and jump to the default if present, otherwise to
|
| @@ -831,14 +831,14 @@ void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
|
| if (default_clause == NULL) {
|
| __ jmp(nested_statement.break_target());
|
| } else {
|
| - __ jmp(default_clause->body_target()->entry_label());
|
| + __ jmp(default_clause->body_target());
|
| }
|
|
|
| // Compile all the case bodies.
|
| for (int i = 0; i < clauses->length(); i++) {
|
| Comment cmnt(masm_, "[ Case body");
|
| CaseClause* clause = clauses->at(i);
|
| - __ bind(clause->body_target()->entry_label());
|
| + __ bind(clause->body_target());
|
| PrepareForBailoutForId(clause->EntryId(), NO_REGISTERS);
|
| VisitStatements(clause->statements());
|
| }
|
|
|