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

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

Issue 115756: Split nested namespaces declaration in two lines in accordance with C++ Style Guide. (Closed)
Patch Set: Created 11 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
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 17 matching lines...) Expand all
28 #include "v8.h" 28 #include "v8.h"
29 #include "unicode.h" 29 #include "unicode.h"
30 #include "log.h" 30 #include "log.h"
31 #include "ast.h" 31 #include "ast.h"
32 #include "regexp-stack.h" 32 #include "regexp-stack.h"
33 #include "macro-assembler.h" 33 #include "macro-assembler.h"
34 #include "regexp-macro-assembler.h" 34 #include "regexp-macro-assembler.h"
35 #include "ia32/macro-assembler-ia32.h" 35 #include "ia32/macro-assembler-ia32.h"
36 #include "ia32/regexp-macro-assembler-ia32.h" 36 #include "ia32/regexp-macro-assembler-ia32.h"
37 37
38 namespace v8 { namespace internal { 38 namespace v8 {
39 namespace internal {
39 40
40 /* 41 /*
41 * This assembler uses the following register assignment convention 42 * This assembler uses the following register assignment convention
42 * - edx : current character. Must be loaded using LoadCurrentCharacter 43 * - edx : current character. Must be loaded using LoadCurrentCharacter
43 * before using any of the dispatch methods. 44 * before using any of the dispatch methods.
44 * - edi : current position in input, as negative offset from end of string. 45 * - edi : current position in input, as negative offset from end of string.
45 * Please notice that this is the byte offset, not the character offset! 46 * Please notice that this is the byte offset, not the character offset!
46 * - esi : end of input (points to byte after last character in input). 47 * - esi : end of input (points to byte after last character in input).
47 * - ebp : frame pointer. Used to access arguments, local variables and 48 * - ebp : frame pointer. Used to access arguments, local variables and
48 * RegExp registers. 49 * RegExp registers.
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1382
1382 1383
1383 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, 1384 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg,
1384 ArraySlice* buffer) { 1385 ArraySlice* buffer) {
1385 __ mov(reg, buffer->array()); 1386 __ mov(reg, buffer->array());
1386 __ add(Operand(reg), Immediate(buffer->base_offset())); 1387 __ add(Operand(reg), Immediate(buffer->base_offset()));
1387 } 1388 }
1388 1389
1389 #undef __ 1390 #undef __
1390 }} // namespace v8::internal 1391 }} // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698