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

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

Issue 88025: * Add code to check coverage of generated code on IA32 port.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2008-2009 the V8 project authors. All rights reserved. 1 // Copyright 2008-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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 * The data up to the return address must be placed there by the calling 79 * The data up to the return address must be placed there by the calling
80 * code, e.g., by calling the code entry as cast to: 80 * code, e.g., by calling the code entry as cast to:
81 * int (*match)(String* input_string, 81 * int (*match)(String* input_string,
82 * Address start, 82 * Address start,
83 * Address end, 83 * Address end,
84 * int* capture_output_array, 84 * int* capture_output_array,
85 * bool at_start, 85 * bool at_start,
86 * byte* stack_area_top) 86 * byte* stack_area_top)
87 */ 87 */
88 88
89 #define __ masm_-> 89 #define __ DEFINE_MASM(masm_)
90 90
91 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32( 91 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32(
92 Mode mode, 92 Mode mode,
93 int registers_to_save) 93 int registers_to_save)
94 : masm_(new MacroAssembler(NULL, kRegExpCodeSize)), 94 : masm_(new MacroAssembler(NULL, kRegExpCodeSize)),
95 constants_(kRegExpConstantsSize), 95 constants_(kRegExpConstantsSize),
96 mode_(mode), 96 mode_(mode),
97 num_registers_(registers_to_save), 97 num_registers_(registers_to_save),
98 num_saved_registers_(registers_to_save), 98 num_saved_registers_(registers_to_save),
99 entry_label_(), 99 entry_label_(),
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1381
1382 1382
1383 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, 1383 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg,
1384 ArraySlice* buffer) { 1384 ArraySlice* buffer) {
1385 __ mov(reg, buffer->array()); 1385 __ mov(reg, buffer->array());
1386 __ add(Operand(reg), Immediate(buffer->base_offset())); 1386 __ add(Operand(reg), Immediate(buffer->base_offset()));
1387 } 1387 }
1388 1388
1389 #undef __ 1389 #undef __
1390 }} // namespace v8::internal 1390 }} // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698