| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 if (pos != RelocInfo::kNoPosition) { | 227 if (pos != RelocInfo::kNoPosition) { |
| 228 masm->positions_recorder()->RecordStatementPosition(pos); | 228 masm->positions_recorder()->RecordStatementPosition(pos); |
| 229 masm->positions_recorder()->RecordPosition(pos); | 229 masm->positions_recorder()->RecordPosition(pos); |
| 230 if (right_here) { | 230 if (right_here) { |
| 231 return masm->positions_recorder()->WriteRecordedPositions(); | 231 return masm->positions_recorder()->WriteRecordedPositions(); |
| 232 } | 232 } |
| 233 } | 233 } |
| 234 return false; | 234 return false; |
| 235 } | 235 } |
| 236 | 236 |
| 237 | |
| 238 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | |
| 239 switch (type_) { | |
| 240 case READ_ELEMENT: | |
| 241 GenerateReadElement(masm); | |
| 242 break; | |
| 243 case NEW_SLOPPY_FAST: | |
| 244 GenerateNewSloppyFast(masm); | |
| 245 break; | |
| 246 case NEW_SLOPPY_SLOW: | |
| 247 GenerateNewSloppySlow(masm); | |
| 248 break; | |
| 249 case NEW_STRICT: | |
| 250 GenerateNewStrict(masm); | |
| 251 break; | |
| 252 } | |
| 253 } | |
| 254 | |
| 255 } } // namespace v8::internal | 237 } } // namespace v8::internal |
| OLD | NEW |