OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 break; | 59 break; |
60 case Slot::LOCAL: | 60 case Slot::LOCAL: |
61 offset += JavaScriptFrameConstants::kLocal0Offset; | 61 offset += JavaScriptFrameConstants::kLocal0Offset; |
62 break; | 62 break; |
63 default: | 63 default: |
64 UNREACHABLE(); | 64 UNREACHABLE(); |
65 } | 65 } |
66 return offset; | 66 return offset; |
67 } | 67 } |
68 | 68 |
| 69 void FastCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) { |
| 70 if (FLAG_debug_info) { |
| 71 CodeGenerator::RecordPositions(masm_, fun->start_position()); |
| 72 } |
| 73 } |
| 74 |
| 75 |
| 76 void FastCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { |
| 77 if (FLAG_debug_info) { |
| 78 CodeGenerator::RecordPositions(masm_, fun->end_position()); |
| 79 } |
| 80 } |
| 81 |
| 82 |
| 83 void FastCodeGenerator::SetStatementPosition(Statement* stmt) { |
| 84 if (FLAG_debug_info) { |
| 85 CodeGenerator::RecordPositions(masm_, stmt->statement_pos()); |
| 86 } |
| 87 } |
| 88 |
| 89 |
| 90 void FastCodeGenerator::SetSourcePosition(int pos) { |
| 91 if (FLAG_debug_info && pos != RelocInfo::kNoPosition) { |
| 92 masm_->RecordPosition(pos); |
| 93 } |
| 94 } |
| 95 |
69 | 96 |
70 void FastCodeGenerator::VisitDeclaration(Declaration* decl) { | 97 void FastCodeGenerator::VisitDeclaration(Declaration* decl) { |
71 UNREACHABLE(); | 98 UNREACHABLE(); |
72 } | 99 } |
73 | 100 |
74 | 101 |
75 void FastCodeGenerator::VisitBlock(Block* stmt) { | 102 void FastCodeGenerator::VisitBlock(Block* stmt) { |
76 UNREACHABLE(); | 103 UNREACHABLE(); |
77 } | 104 } |
78 | 105 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 UNREACHABLE(); | 262 UNREACHABLE(); |
236 } | 263 } |
237 | 264 |
238 | 265 |
239 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { | 266 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
240 UNREACHABLE(); | 267 UNREACHABLE(); |
241 } | 268 } |
242 | 269 |
243 | 270 |
244 } } // namespace v8::internal | 271 } } // namespace v8::internal |
OLD | NEW |