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

Side by Side Diff: src/regexp.js

Issue 9231009: More spelling changes. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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/platform-win32.cc ('k') | src/regexp-macro-assembler.cc » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 DONT_ENUM | DONT_DELETE); 429 DONT_ENUM | DONT_DELETE);
430 %DefineAccessor($RegExp, '$input', GETTER, RegExpGetInput, 430 %DefineAccessor($RegExp, '$input', GETTER, RegExpGetInput,
431 DONT_ENUM | DONT_DELETE); 431 DONT_ENUM | DONT_DELETE);
432 %DefineAccessor($RegExp, '$input', SETTER, RegExpSetInput, 432 %DefineAccessor($RegExp, '$input', SETTER, RegExpSetInput,
433 DONT_ENUM | DONT_DELETE); 433 DONT_ENUM | DONT_DELETE);
434 434
435 // The properties multiline and $* are aliases for each other. When this 435 // The properties multiline and $* are aliases for each other. When this
436 // value is set in SpiderMonkey, the value it is set to is coerced to a 436 // value is set in SpiderMonkey, the value it is set to is coerced to a
437 // boolean. We mimic that behavior with a slight difference: in SpiderMonkey 437 // boolean. We mimic that behavior with a slight difference: in SpiderMonkey
438 // the value of the expression 'RegExp.multiline = null' (for instance) is the 438 // the value of the expression 'RegExp.multiline = null' (for instance) is the
439 // boolean false (ie, the value after coercion), while in V8 it is the value 439 // boolean false (i.e., the value after coercion), while in V8 it is the value
440 // null (ie, the value before coercion). 440 // null (i.e., the value before coercion).
441 441
442 // Getter and setter for multiline. 442 // Getter and setter for multiline.
443 var multiline = false; 443 var multiline = false;
444 function RegExpGetMultiline() { return multiline; } 444 function RegExpGetMultiline() { return multiline; }
445 function RegExpSetMultiline(flag) { multiline = flag ? true : false; } 445 function RegExpSetMultiline(flag) { multiline = flag ? true : false; }
446 446
447 %DefineAccessor($RegExp, 'multiline', GETTER, RegExpGetMultiline, 447 %DefineAccessor($RegExp, 'multiline', GETTER, RegExpGetMultiline,
448 DONT_DELETE); 448 DONT_DELETE);
449 %DefineAccessor($RegExp, 'multiline', SETTER, RegExpSetMultiline, 449 %DefineAccessor($RegExp, 'multiline', SETTER, RegExpSetMultiline,
450 DONT_DELETE); 450 DONT_DELETE);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 %DefineAccessor($RegExp, "$'", SETTER, NoOpSetter, DONT_ENUM | DONT_DELETE); 484 %DefineAccessor($RegExp, "$'", SETTER, NoOpSetter, DONT_ENUM | DONT_DELETE);
485 485
486 for (var i = 1; i < 10; ++i) { 486 for (var i = 1; i < 10; ++i) {
487 %DefineAccessor($RegExp, '$' + i, GETTER, RegExpMakeCaptureGetter(i), 487 %DefineAccessor($RegExp, '$' + i, GETTER, RegExpMakeCaptureGetter(i),
488 DONT_DELETE); 488 DONT_DELETE);
489 %DefineAccessor($RegExp, '$' + i, SETTER, NoOpSetter, DONT_DELETE); 489 %DefineAccessor($RegExp, '$' + i, SETTER, NoOpSetter, DONT_DELETE);
490 } 490 }
491 } 491 }
492 492
493 SetUpRegExp(); 493 SetUpRegExp();
OLDNEW
« no previous file with comments | « src/platform-win32.cc ('k') | src/regexp-macro-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698