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

Side by Side Diff: src/codegen.h

Issue 2809048: RegExp replace with empty string optimization by Sandholm. (Closed)
Patch Set: Addressed review comments. Created 10 years, 5 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
« no previous file with comments | « no previous file | src/factory.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 Major MajorKey() { return Instanceof; } 413 Major MajorKey() { return Instanceof; }
414 int MinorKey() { return 0; } 414 int MinorKey() { return 0; }
415 }; 415 };
416 416
417 417
418 enum NegativeZeroHandling { 418 enum NegativeZeroHandling {
419 kStrictNegativeZero, 419 kStrictNegativeZero,
420 kIgnoreNegativeZero 420 kIgnoreNegativeZero
421 }; 421 };
422 422
423 423
424 class GenericUnaryOpStub : public CodeStub { 424 class GenericUnaryOpStub : public CodeStub {
425 public: 425 public:
426 GenericUnaryOpStub(Token::Value op, 426 GenericUnaryOpStub(Token::Value op,
427 UnaryOverwriteMode overwrite, 427 UnaryOverwriteMode overwrite,
428 NegativeZeroHandling negative_zero = kStrictNegativeZero) 428 NegativeZeroHandling negative_zero = kStrictNegativeZero)
429 : op_(op), overwrite_(overwrite), negative_zero_(negative_zero) { } 429 : op_(op), overwrite_(overwrite), negative_zero_(negative_zero) { }
430 430
431 private: 431 private:
432 Token::Value op_; 432 Token::Value op_;
433 UnaryOverwriteMode overwrite_; 433 UnaryOverwriteMode overwrite_;
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 StringCharFromCodeGenerator char_from_code_generator_; 871 StringCharFromCodeGenerator char_from_code_generator_;
872 872
873 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator); 873 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator);
874 }; 874 };
875 875
876 876
877 } // namespace internal 877 } // namespace internal
878 } // namespace v8 878 } // namespace v8
879 879
880 #endif // V8_CODEGEN_H_ 880 #endif // V8_CODEGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698