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 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2529 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { | 2529 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { |
2530 ASSERT(args->length() == 3); | 2530 ASSERT(args->length() == 3); |
2531 VisitForValue(args->at(0), kStack); | 2531 VisitForValue(args->at(0), kStack); |
2532 VisitForValue(args->at(1), kStack); | 2532 VisitForValue(args->at(1), kStack); |
2533 VisitForValue(args->at(2), kStack); | 2533 VisitForValue(args->at(2), kStack); |
2534 __ CallRuntime(Runtime::kRegExpConstructResult, 3); | 2534 __ CallRuntime(Runtime::kRegExpConstructResult, 3); |
2535 Apply(context_, r0); | 2535 Apply(context_, r0); |
2536 } | 2536 } |
2537 | 2537 |
2538 | 2538 |
2539 void FullCodeGenerator::EmitRegExpCloneResult(ZoneList<Expression*>* args) { | |
2540 ASSERT(args->length() == 1); | |
2541 VisitForValue(args->at(0), kStack); | |
2542 __ CallRuntime(Runtime::kRegExpConstructResult, 1); | |
2543 Apply(context_, r0); | |
2544 } | |
2545 | |
2546 | |
2547 void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) { | 2539 void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) { |
2548 ASSERT(args->length() == 3); | 2540 ASSERT(args->length() == 3); |
2549 VisitForValue(args->at(0), kStack); | 2541 VisitForValue(args->at(0), kStack); |
2550 VisitForValue(args->at(1), kStack); | 2542 VisitForValue(args->at(1), kStack); |
2551 VisitForValue(args->at(2), kStack); | 2543 VisitForValue(args->at(2), kStack); |
2552 __ CallRuntime(Runtime::kSwapElements, 3); | 2544 __ CallRuntime(Runtime::kSwapElements, 3); |
2553 Apply(context_, r0); | 2545 Apply(context_, r0); |
2554 } | 2546 } |
2555 | 2547 |
2556 | 2548 |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3251 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 3243 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
3252 __ add(pc, r1, Operand(masm_->CodeObject())); | 3244 __ add(pc, r1, Operand(masm_->CodeObject())); |
3253 } | 3245 } |
3254 | 3246 |
3255 | 3247 |
3256 #undef __ | 3248 #undef __ |
3257 | 3249 |
3258 } } // namespace v8::internal | 3250 } } // namespace v8::internal |
3259 | 3251 |
3260 #endif // V8_TARGET_ARCH_ARM | 3252 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |