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

Side by Side Diff: src/bootstrapper.cc

Issue 21041: Refactor code for determining line position in a source file.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/accessors.cc ('k') | src/compiler.cc » ('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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 Factory::LookupAsciiSymbol("column_offset"), 1007 Factory::LookupAsciiSymbol("column_offset"),
1008 proxy_column_offset, 1008 proxy_column_offset,
1009 common_attributes); 1009 common_attributes);
1010 Handle<Proxy> proxy_type = Factory::NewProxy(&Accessors::ScriptType); 1010 Handle<Proxy> proxy_type = Factory::NewProxy(&Accessors::ScriptType);
1011 script_descriptors = 1011 script_descriptors =
1012 Factory::CopyAppendProxyDescriptor( 1012 Factory::CopyAppendProxyDescriptor(
1013 script_descriptors, 1013 script_descriptors,
1014 Factory::LookupAsciiSymbol("type"), 1014 Factory::LookupAsciiSymbol("type"),
1015 proxy_type, 1015 proxy_type,
1016 common_attributes); 1016 common_attributes);
1017 Handle<Proxy> proxy_line_ends =
1018 Factory::NewProxy(&Accessors::ScriptLineEnds);
1019 script_descriptors =
1020 Factory::CopyAppendProxyDescriptor(
1021 script_descriptors,
1022 Factory::LookupAsciiSymbol("line_ends"),
1023 proxy_line_ends,
1024 common_attributes);
1017 1025
1018 Handle<Map> script_map = Handle<Map>(script_fun->initial_map()); 1026 Handle<Map> script_map = Handle<Map>(script_fun->initial_map());
1019 script_map->set_instance_descriptors(*script_descriptors); 1027 script_map->set_instance_descriptors(*script_descriptors);
1020 1028
1021 // Allocate the empty script. 1029 // Allocate the empty script.
1022 Handle<Script> script = Factory::NewScript(Factory::empty_string()); 1030 Handle<Script> script = Factory::NewScript(Factory::empty_string());
1023 global_context()->set_empty_script(*script); 1031 global_context()->set_empty_script(*script);
1024 } 1032 }
1025 1033
1026 if (FLAG_natives_file == NULL) { 1034 if (FLAG_natives_file == NULL) {
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 } 1510 }
1503 1511
1504 1512
1505 // Restore statics that are thread local. 1513 // Restore statics that are thread local.
1506 char* Genesis::RestoreState(char* from) { 1514 char* Genesis::RestoreState(char* from) {
1507 current_ = *reinterpret_cast<Genesis**>(from); 1515 current_ = *reinterpret_cast<Genesis**>(from);
1508 return from + sizeof(current_); 1516 return from + sizeof(current_);
1509 } 1517 }
1510 1518
1511 } } // namespace v8::internal 1519 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/accessors.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698