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

Unified Diff: src/parsing/func-name-inferrer.h

Issue 1439693002: [runtime] Support Proxy setPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-11-09_new_Proxy_1417063011
Patch Set: merging with master Created 5 years, 1 month 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 | « src/objects.h ('k') | src/parsing/func-name-inferrer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/func-name-inferrer.h
diff --git a/src/parsing/func-name-inferrer.h b/src/parsing/func-name-inferrer.h
index d0e4cad429cdc0d0264162a9b82a5c67fce2f6e2..8eb5db4616cb9206bdb90aca5fcab9bc17884fee 100644
--- a/src/parsing/func-name-inferrer.h
+++ b/src/parsing/func-name-inferrer.h
@@ -37,9 +37,7 @@ class FuncNameInferrer : public ZoneObject {
void PushEnclosingName(const AstRawString* name);
// Enters name collection state.
- void Enter() {
- entries_stack_.Add(names_stack_.length(), zone());
- }
+ void Enter() { entries_stack_.Add(names_stack_.length(), zone()); }
// Pushes an encountered name onto names stack when in collection state.
void PushLiteralName(const AstRawString* name);
@@ -71,16 +69,11 @@ class FuncNameInferrer : public ZoneObject {
void Leave() {
DCHECK(IsOpen());
names_stack_.Rewind(entries_stack_.RemoveLast());
- if (entries_stack_.is_empty())
- funcs_to_infer_.Clear();
+ if (entries_stack_.is_empty()) funcs_to_infer_.Clear();
}
private:
- enum NameType {
- kEnclosingConstructorName,
- kLiteralName,
- kVariableName
- };
+ enum NameType { kEnclosingConstructorName, kLiteralName, kVariableName };
struct Name {
Name(const AstRawString* name, NameType type) : name(name), type(type) {}
const AstRawString* name;
@@ -93,8 +86,7 @@ class FuncNameInferrer : public ZoneObject {
const AstString* MakeNameFromStack();
// A helper function for MakeNameFromStack.
- const AstString* MakeNameFromStackHelper(int pos,
- const AstString* prev);
+ const AstString* MakeNameFromStackHelper(int pos, const AstString* prev);
// Performs name inferring for added functions.
void InferFunctionsNames();
« no previous file with comments | « src/objects.h ('k') | src/parsing/func-name-inferrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698