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

Side by Side Diff: src/regexp/x87/regexp-macro-assembler-x87.cc

Issue 2752143003: [regexp] Remove remainder of native RegExpExecStub (Closed)
Patch Set: Update comments Created 3 years, 8 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
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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/regexp/x87/regexp-macro-assembler-x87.h" 7 #include "src/regexp/x87/regexp-macro-assembler-x87.h"
8 8
9 #include "src/log.h" 9 #include "src/log.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 * - register 1 ebp[-8] num_saved_registers_ registers) 58 * - register 1 ebp[-8] num_saved_registers_ registers)
59 * - ... 59 * - ...
60 * 60 *
61 * The first num_saved_registers_ registers are initialized to point to 61 * The first num_saved_registers_ registers are initialized to point to
62 * "character -1" in the string (i.e., char_size() bytes before the first 62 * "character -1" in the string (i.e., char_size() bytes before the first
63 * character of the string). The remaining registers starts out as garbage. 63 * character of the string). The remaining registers starts out as garbage.
64 * 64 *
65 * The data up to the return address must be placed there by the calling 65 * The data up to the return address must be placed there by the calling
66 * code, by calling the code entry as cast to a function with the signature: 66 * code, by calling the code entry as cast to a function with the signature:
67 * int (*match)(String* input_string, 67 * int (*match)(String* input_string,
68 * int (*match)(String* input_string,
68 * int start_index, 69 * int start_index,
69 * Address start, 70 * Address start,
70 * Address end, 71 * Address end,
71 * int* capture_output_array, 72 * int* capture_output_array,
72 * bool at_start, 73 * int num_capture_registers,
73 * byte* stack_area_base, 74 * byte* stack_area_base,
74 * bool direct_call) 75 * bool direct_call = false,
76 * Isolate* isolate);
75 */ 77 */
76 78
77 #define __ ACCESS_MASM(masm_) 79 #define __ ACCESS_MASM(masm_)
78 80
79 RegExpMacroAssemblerX87::RegExpMacroAssemblerX87(Isolate* isolate, Zone* zone, 81 RegExpMacroAssemblerX87::RegExpMacroAssemblerX87(Isolate* isolate, Zone* zone,
80 Mode mode, 82 Mode mode,
81 int registers_to_save) 83 int registers_to_save)
82 : NativeRegExpMacroAssembler(isolate, zone), 84 : NativeRegExpMacroAssembler(isolate, zone),
83 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize, 85 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize,
84 CodeObjectRequired::kYes)), 86 CodeObjectRequired::kYes)),
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 1265
1264 1266
1265 #undef __ 1267 #undef __
1266 1268
1267 #endif // V8_INTERPRETED_REGEXP 1269 #endif // V8_INTERPRETED_REGEXP
1268 1270
1269 } // namespace internal 1271 } // namespace internal
1270 } // namespace v8 1272 } // namespace v8
1271 1273
1272 #endif // V8_TARGET_ARCH_X87 1274 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698