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 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 } | 1372 } |
1373 | 1373 |
1374 | 1374 |
1375 int FullCodeGenerator::TryCatch::Exit(int stack_depth) { | 1375 int FullCodeGenerator::TryCatch::Exit(int stack_depth) { |
1376 // The macros used here must preserve the result register. | 1376 // The macros used here must preserve the result register. |
1377 __ Drop(stack_depth); | 1377 __ Drop(stack_depth); |
1378 __ PopTryHandler(); | 1378 __ PopTryHandler(); |
1379 return 0; | 1379 return 0; |
1380 } | 1380 } |
1381 | 1381 |
| 1382 |
| 1383 void FullCodeGenerator::EmitRegExpCloneResult(ZoneList<Expression*>* args) { |
| 1384 ASSERT(args->length() == 1); |
| 1385 VisitForValue(args->at(0), kStack); |
| 1386 __ CallRuntime(Runtime::kRegExpCloneResult, 1); |
| 1387 Apply(context_, result_register()); |
| 1388 } |
| 1389 |
1382 #undef __ | 1390 #undef __ |
1383 | 1391 |
1384 | 1392 |
1385 } } // namespace v8::internal | 1393 } } // namespace v8::internal |
OLD | NEW |