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

Side by Side Diff: src/bootstrapper.cc

Issue 6446: Revert 428. Breaks 64-bit compilation. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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/api.h ('k') | src/debug.h » ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 void Initialize(bool create_heap_objects) { 51 void Initialize(bool create_heap_objects) {
52 if (create_heap_objects) { 52 if (create_heap_objects) {
53 cache_ = Heap::empty_fixed_array(); 53 cache_ = Heap::empty_fixed_array();
54 } else { 54 } else {
55 cache_ = NULL; 55 cache_ = NULL;
56 } 56 }
57 } 57 }
58 58
59 void Iterate(ObjectVisitor* v) { 59 void Iterate(ObjectVisitor* v) {
60 v->VisitPointer(bit_cast<Object**, FixedArray**>(&cache_)); 60 v->VisitPointer(reinterpret_cast<Object**>(&cache_));
61 } 61 }
62 62
63 63
64 bool Lookup(Vector<const char> name, Handle<JSFunction>* handle) { 64 bool Lookup(Vector<const char> name, Handle<JSFunction>* handle) {
65 for (int i = 0; i < cache_->length(); i+=2) { 65 for (int i = 0; i < cache_->length(); i+=2) {
66 AsciiString* str = AsciiString::cast(cache_->get(i)); 66 AsciiString* str = AsciiString::cast(cache_->get(i));
67 if (str->IsEqualTo(name)) { 67 if (str->IsEqualTo(name)) {
68 *handle = Handle<JSFunction>(JSFunction::cast(cache_->get(i + 1))); 68 *handle = Handle<JSFunction>(JSFunction::cast(cache_->get(i + 1)));
69 return true; 69 return true;
70 } 70 }
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 if (!ConfigureGlobalObject(global_template)) return; 1334 if (!ConfigureGlobalObject(global_template)) return;
1335 1335
1336 if (!InstallExtensions(extensions)) return; 1336 if (!InstallExtensions(extensions)) return;
1337 1337
1338 if (!InstallSpecialObjects()) return; 1338 if (!InstallSpecialObjects()) return;
1339 1339
1340 result_ = global_context_; 1340 result_ = global_context_;
1341 } 1341 }
1342 1342
1343 } } // namespace v8::internal 1343 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.h ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698