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

Side by Side Diff: src/heap/heap.h

Issue 1097283003: Resolve references to "this" the same way as normal variables (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Add tests for "this" scoping in arrow functions Created 5 years, 8 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 | « src/contexts.cc ('k') | src/parser.cc » ('j') | src/scopes.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 V(Function_string, "Function") \ 219 V(Function_string, "Function") \
220 V(length_string, "length") \ 220 V(length_string, "length") \
221 V(name_string, "name") \ 221 V(name_string, "name") \
222 V(null_string, "null") \ 222 V(null_string, "null") \
223 V(number_string, "number") \ 223 V(number_string, "number") \
224 V(Number_string, "Number") \ 224 V(Number_string, "Number") \
225 V(nan_string, "NaN") \ 225 V(nan_string, "NaN") \
226 V(source_string, "source") \ 226 V(source_string, "source") \
227 V(source_url_string, "source_url") \ 227 V(source_url_string, "source_url") \
228 V(source_mapping_url_string, "source_mapping_url") \ 228 V(source_mapping_url_string, "source_mapping_url") \
229 V(this_string, "this") \
229 V(global_string, "global") \ 230 V(global_string, "global") \
230 V(ignore_case_string, "ignoreCase") \ 231 V(ignore_case_string, "ignoreCase") \
231 V(multiline_string, "multiline") \ 232 V(multiline_string, "multiline") \
232 V(sticky_string, "sticky") \ 233 V(sticky_string, "sticky") \
233 V(unicode_string, "unicode") \ 234 V(unicode_string, "unicode") \
234 V(harmony_regexps_string, "harmony_regexps") \ 235 V(harmony_regexps_string, "harmony_regexps") \
235 V(harmony_tostring_string, "harmony_tostring") \ 236 V(harmony_tostring_string, "harmony_tostring") \
236 V(harmony_unicode_regexps_string, "harmony_unicode_regexps") \ 237 V(harmony_unicode_regexps_string, "harmony_unicode_regexps") \
237 V(input_string, "input") \ 238 V(input_string, "input") \
238 V(index_string, "index") \ 239 V(index_string, "index") \
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2606 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2607 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2607 2608
2608 private: 2609 private:
2609 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2610 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2610 }; 2611 };
2611 #endif // DEBUG 2612 #endif // DEBUG
2612 } 2613 }
2613 } // namespace v8::internal 2614 } // namespace v8::internal
2614 2615
2615 #endif // V8_HEAP_HEAP_H_ 2616 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/contexts.cc ('k') | src/parser.cc » ('j') | src/scopes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698