OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "src/v8.h" | 34 #include "src/v8.h" |
35 | 35 |
36 #include "src/ast/ast-numbering.h" | 36 #include "src/ast/ast-numbering.h" |
37 #include "src/ast/ast-value-factory.h" | 37 #include "src/ast/ast-value-factory.h" |
38 #include "src/ast/ast.h" | 38 #include "src/ast/ast.h" |
39 #include "src/compiler.h" | 39 #include "src/compiler.h" |
40 #include "src/execution.h" | 40 #include "src/execution.h" |
41 #include "src/flags.h" | 41 #include "src/flags.h" |
42 #include "src/isolate.h" | 42 #include "src/isolate.h" |
| 43 #include "src/objects-inl.h" |
43 #include "src/objects.h" | 44 #include "src/objects.h" |
44 #include "src/parsing/parse-info.h" | 45 #include "src/parsing/parse-info.h" |
45 #include "src/parsing/parser.h" | 46 #include "src/parsing/parser.h" |
46 #include "src/parsing/parsing.h" | 47 #include "src/parsing/parsing.h" |
47 #include "src/parsing/preparser.h" | 48 #include "src/parsing/preparser.h" |
48 #include "src/parsing/rewriter.h" | 49 #include "src/parsing/rewriter.h" |
49 #include "src/parsing/scanner-character-streams.h" | 50 #include "src/parsing/scanner-character-streams.h" |
50 #include "src/parsing/token.h" | 51 #include "src/parsing/token.h" |
51 #include "src/unicode-cache.h" | 52 #include "src/unicode-cache.h" |
52 #include "src/utils.h" | 53 #include "src/utils.h" |
(...skipping 8743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8796 DCHECK_NOT_NULL(scope); | 8797 DCHECK_NOT_NULL(scope); |
8797 DCHECK_NULL(scope->sibling()); | 8798 DCHECK_NULL(scope->sibling()); |
8798 DCHECK(scope->is_function_scope()); | 8799 DCHECK(scope->is_function_scope()); |
8799 const i::AstRawString* var_name = | 8800 const i::AstRawString* var_name = |
8800 info.ast_value_factory()->GetOneByteString("my_var"); | 8801 info.ast_value_factory()->GetOneByteString("my_var"); |
8801 i::Variable* var = scope->Lookup(var_name); | 8802 i::Variable* var = scope->Lookup(var_name); |
8802 CHECK_EQ(inners[i].ctxt_allocate, | 8803 CHECK_EQ(inners[i].ctxt_allocate, |
8803 i::ScopeTestHelper::MustAllocateInContext(var)); | 8804 i::ScopeTestHelper::MustAllocateInContext(var)); |
8804 } | 8805 } |
8805 } | 8806 } |
OLD | NEW |