| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 __ b(nested_statement.break_target()); | 871 __ b(nested_statement.break_target()); |
| 872 } else { | 872 } else { |
| 873 __ b(default_clause->body_target()->entry_label()); | 873 __ b(default_clause->body_target()->entry_label()); |
| 874 } | 874 } |
| 875 | 875 |
| 876 // Compile all the case bodies. | 876 // Compile all the case bodies. |
| 877 for (int i = 0; i < clauses->length(); i++) { | 877 for (int i = 0; i < clauses->length(); i++) { |
| 878 Comment cmnt(masm_, "[ Case body"); | 878 Comment cmnt(masm_, "[ Case body"); |
| 879 CaseClause* clause = clauses->at(i); | 879 CaseClause* clause = clauses->at(i); |
| 880 __ bind(clause->body_target()->entry_label()); | 880 __ bind(clause->body_target()->entry_label()); |
| 881 PrepareForBailoutForId(clause->EntryId(), NO_REGISTERS); |
| 881 VisitStatements(clause->statements()); | 882 VisitStatements(clause->statements()); |
| 882 } | 883 } |
| 883 | 884 |
| 884 __ bind(nested_statement.break_target()); | 885 __ bind(nested_statement.break_target()); |
| 885 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); | 886 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); |
| 886 } | 887 } |
| 887 | 888 |
| 888 | 889 |
| 889 void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { | 890 void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
| 890 Comment cmnt(masm_, "[ ForInStatement"); | 891 Comment cmnt(masm_, "[ ForInStatement"); |
| (...skipping 3390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4281 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4282 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 4282 __ add(pc, r1, Operand(masm_->CodeObject())); | 4283 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 4283 } | 4284 } |
| 4284 | 4285 |
| 4285 | 4286 |
| 4286 #undef __ | 4287 #undef __ |
| 4287 | 4288 |
| 4288 } } // namespace v8::internal | 4289 } } // namespace v8::internal |
| 4289 | 4290 |
| 4290 #endif // V8_TARGET_ARCH_ARM | 4291 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |