Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: src/jsregexp.cc

Issue 297303004: Revert 21502 - "Move OS::MemCopy and OS::MemMove out of platform to utils" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/isolate.cc ('k') | src/list-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "v8.h" 5 #include "v8.h"
6 6
7 #include "ast.h" 7 #include "ast.h"
8 #include "compiler.h" 8 #include "compiler.h"
9 #include "execution.h" 9 #include "execution.h"
10 #include "factory.h" 10 #include "factory.h"
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 } 597 }
598 Handle<ByteArray> byte_codes(IrregexpByteCode(*irregexp, is_ascii), isolate); 598 Handle<ByteArray> byte_codes(IrregexpByteCode(*irregexp, is_ascii), isolate);
599 599
600 IrregexpResult result = IrregexpInterpreter::Match(isolate, 600 IrregexpResult result = IrregexpInterpreter::Match(isolate,
601 byte_codes, 601 byte_codes,
602 subject, 602 subject,
603 raw_output, 603 raw_output,
604 index); 604 index);
605 if (result == RE_SUCCESS) { 605 if (result == RE_SUCCESS) {
606 // Copy capture results to the start of the registers array. 606 // Copy capture results to the start of the registers array.
607 MemCopy(output, raw_output, number_of_capture_registers * sizeof(int32_t)); 607 OS::MemCopy(
608 output, raw_output, number_of_capture_registers * sizeof(int32_t));
608 } 609 }
609 if (result == RE_EXCEPTION) { 610 if (result == RE_EXCEPTION) {
610 ASSERT(!isolate->has_pending_exception()); 611 ASSERT(!isolate->has_pending_exception());
611 isolate->StackOverflow(); 612 isolate->StackOverflow();
612 } 613 }
613 return result; 614 return result;
614 #endif // V8_INTERPRETED_REGEXP 615 #endif // V8_INTERPRETED_REGEXP
615 } 616 }
616 617
617 618
(...skipping 5488 matching lines...) Expand 10 before | Expand all | Expand 10 after
6106 } 6107 }
6107 6108
6108 return compiler.Assemble(&macro_assembler, 6109 return compiler.Assemble(&macro_assembler,
6109 node, 6110 node,
6110 data->capture_count, 6111 data->capture_count,
6111 pattern); 6112 pattern);
6112 } 6113 }
6113 6114
6114 6115
6115 }} // namespace v8::internal 6116 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/list-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698