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

Unified Diff: src/code-stubs.h

Issue 1347473003: Revert of [crankshaft] Re-add fast-case for string add left/right. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index b875b941a32ae5a4895c8c9f38b4cef983d6e38f..f793e6e5d9efb0001967f3a2833d933259ec347c 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -676,11 +676,7 @@
// Check right parameter.
STRING_ADD_CHECK_RIGHT = 1 << 1,
// Check both parameters.
- STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT,
- // Convert parameters when check fails (instead of throwing an exception).
- STRING_ADD_CONVERT = 1 << 2,
- STRING_ADD_CONVERT_LEFT = STRING_ADD_CHECK_LEFT | STRING_ADD_CONVERT,
- STRING_ADD_CONVERT_RIGHT = STRING_ADD_CHECK_RIGHT | STRING_ADD_CONVERT
+ STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT
};
@@ -705,8 +701,8 @@
}
private:
- class StringAddFlagsBits : public BitField<StringAddFlags, 0, 3> {};
- class PretenureFlagBits : public BitField<PretenureFlag, 3, 1> {};
+ class StringAddFlagsBits : public BitField<StringAddFlags, 0, 2> {};
+ class PretenureFlagBits : public BitField<PretenureFlag, 2, 1> {};
void PrintBaseName(std::ostream& os) const override; // NOLINT
@@ -1651,8 +1647,8 @@
static const int kRight = 1;
private:
- class StringAddFlagsBits : public BitField<StringAddFlags, 0, 3> {};
- class PretenureFlagBits : public BitField<PretenureFlag, 3, 1> {};
+ class StringAddFlagsBits: public BitField<StringAddFlags, 0, 2> {};
+ class PretenureFlagBits: public BitField<PretenureFlag, 2, 1> {};
void PrintBaseName(std::ostream& os) const override; // NOLINT
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698